Ignore:
Timestamp:
Jun 14, 2012 7:42:07 PM (8 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
e522ffa
Parents:
c73044b
Message:
  • I2PSocketEepGet: Use specified port
  • I2PTunnel:
    • Don't strip port from an I2P URL
File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/ministreaming/java/src/net/i2p/client/streaming/I2PSocketEepGet.java

    rc73044b r64221fb3  
    112112                String host = url.getHost();
    113113                int port = url.getPort();
    114                 if (port != -1)
    115                     throw new IOException("Ports not supported in i2p: " + _actualURL);
     114                if (port <= 0 || port >= 65535)
     115                    port = 80;
    116116
    117117                // HTTP Proxy compatibility http://i2p/B64KEY/blah
     
    144144                props.setProperty(PROP_CONNECT_DELAY, CONNECT_DELAY);
    145145                I2PSocketOptions opts = _socketManager.buildOptions(props);
    146                 // TODO pull port out of URL
    147                 opts.setPort(80);
     146                opts.setPort(port);
    148147                _socket = _socketManager.connect(dest, opts);
    149148            } else {
Note: See TracChangeset for help on using the changeset viewer.