Changeset 9d41e86


Ignore:
Timestamp:
Dec 15, 2010 1:06:08 AM (10 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
d000d20
Parents:
c15c97f
Message:

add jump list to form

Location:
apps/i2ptunnel
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java

    rc15c97f r9d41e86  
    902902    }
    903903
    904     private static String DEFAULT_JUMP_SERVERS =
     904    public static final String DEFAULT_JUMP_SERVERS =
    905905                                           "http://i2host.i2p/cgi-bin/i2hostjump?," +
    906906                                           "http://stats.i2p/cgi-bin/jump.cgi?a=," +
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/web/EditBean.java

    rc15c97f r9d41e86  
    1919import net.i2p.data.Signature;
    2020import net.i2p.data.SigningPrivateKey;
     21import net.i2p.i2ptunnel.I2PTunnelHTTPClient;
    2122import net.i2p.i2ptunnel.I2PTunnelHTTPClientBase;
    2223import net.i2p.i2ptunnel.TunnelController;
     
    182183    public String getAccessList(int tunnel) {
    183184        return getProperty(tunnel, "i2cp.accessList", "").replace(",", "\n");
     185    }
     186   
     187    public String getJumpList(int tunnel) {
     188        return getProperty(tunnel, I2PTunnelHTTPClient.PROP_JUMP_SERVERS,
     189                           I2PTunnelHTTPClient.DEFAULT_JUMP_SERVERS).replace(",", "\n");
    184190    }
    185191   
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/web/IndexBean.java

    rc15c97f r9d41e86  
    2525import net.i2p.data.PrivateKeyFile;
    2626import net.i2p.data.SessionKey;
     27import net.i2p.i2ptunnel.I2PTunnelHTTPClient;
    2728import net.i2p.i2ptunnel.I2PTunnelHTTPClientBase;
    2829import net.i2p.i2ptunnel.TunnelController;
     
    680681            _otherOptions.put("i2cp.leaseSetKey", val.trim());
    681682    }
     683
    682684    public void setAccessList(String val) {
    683685        if (val != null)
    684686            _otherOptions.put("i2cp.accessList", val.trim().replace("\r\n", ",").replace("\n", ",").replace(" ", ","));
    685687    }
     688
     689    public void setJumpList(String val) {
     690        if (val != null)
     691            _otherOptions.put(I2PTunnelHTTPClient.PROP_JUMP_SERVERS, val.trim().replace("\r\n", ",").replace("\n", ",").replace(" ", ","));
     692    }
     693
    686694    public void setCloseTime(String val) {
    687695        if (val != null) {
     
    955963    private static final String _otherClientOpts[] = {
    956964        "i2cp.reduceIdleTime", "i2cp.reduceQuantity", "i2cp.closeIdleTime",
    957         "proxyUsername", "proxyPassword", "outproxyUsername", "outproxyPassword"
     965        "proxyUsername", "proxyPassword", "outproxyUsername", "outproxyPassword",
     966        I2PTunnelHTTPClient.PROP_JUMP_SERVERS
    958967        };
    959968    private static final String _otherServerOpts[] = {
  • apps/i2ptunnel/jsp/editClient.jsp

    rc15c97f r9d41e86  
    466466         <% } // httpclient || connect || socks || socksirc %>
    467467
     468         <% if ("httpclient".equals(tunnelType)) { %>
     469            <div id="optionsField" class="rowItem">
     470                <label><%=intl._("Jump URL List")%>:</label>
     471            </div>
     472            <div id="hostField" class="rowItem">
     473                <textarea rows="2" style="height: 8em;" cols="60" id="hostField" name="jumpList" title="List of helper URLs to offer when a host is not found in your addressbook" wrap="off"><%=editBean.getJumpList(curTunnel)%></textarea>               
     474            </div>
     475            <div class="subdivider">
     476                <hr />
     477            </div>
     478         <% } // httpclient %>
     479
    468480            <div id="customOptionsField" class="rowItem">
    469481                <label for="customOptions" accesskey="u">
Note: See TracChangeset for help on using the changeset viewer.