Changes between Version 10 and Version 11 of Proxies


Ignore:
Timestamp:
2009-05-27 19:29:32 (11 years ago)
Author:
speck
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Proxies

    v10 v11  
    3838The dynamic configurations are created by writing a small Javascript which sets the proxy variable.  Select "Dynamic configuration" and click the "edit" button. 
    3939
    40 The script specifies the proxy by assigning it to the {{{gb.proxy}}} variable. An empty string or null value means "use no proxy".  The variable will be empty when the script is executed, so if the script doesn't assign any value to the variable, no proxy is used.  It does not 'remember' the last assignment.
     40The script specifies the proxy by assigning it to the {{{gb.proxy}}} variable. An empty string or {{{null}}} value means "use no proxy".  The variable will be empty when the script is executed, so if the script doesn't assign any value to the variable, no proxy is used.  It does not 'remember' the assignment made in previous executions of the script.
    4141
    4242The Javascript runs globally and does therefore not have access to any request specific information.  The only utility is the {{{gb.log(...)}}} method which logs to the !GlimmerBlocker log. See the [wiki:Transform] page for documentation on its printf-style argument list.
     
    9090   interfaces: {
    9191      en1: {
     92         link: true,
    9293         AirPort: {
    9394            power: 1,
     
    135136}}}
    136137
    137 As most interfaces don't have an !AirPort member, the code must check for its presence to avoid dereferencing a null.
     138As most interfaces don't have an !AirPort member, the code must check for its presence to avoid dereferencing a {{{null}}}.
    138139
    139140=== Detecting IP adresses ===