Changeset 942c316


Ignore:
Timestamp:
Jul 5, 2009 5:06:06 AM (11 years ago)
Author:
sponge <sponge@…>
Branches:
master
Children:
9527684
Parents:
7207156
Message:

2009-07-05 sponge

  • Added X-I2P-DestB64 and X-I2P-DestB32 http headers
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • Slackware/i2p/i2p.SlackBuild

    r7207156 r942c316  
    6666ant distclean
    6767ant dist
    68 
     68ant tarball
    6969
    7070tar xjvf i2p.tar.bz2 -C $TMP
  • apps/BOB/nbproject/private/private.xml

    r7207156 r942c316  
    33    <editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1"/>
    44    <open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/1">
    5         <file>file:/root/NetBeansProjects/i2p.i2p/apps/BOB/src/net/i2p/BOB/MUXlisten.java</file>
     5        <file>file:/root/NetBeansProjects/i2p.i2p/apps/BOB/src/net/i2p/BOB/I2PtoTCP.java</file>
    66    </open-files>
    77</project-private>
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPServer.java

    r7207156 r942c316  
    2020import net.i2p.util.I2PThread;
    2121import net.i2p.util.Log;
     22import net.i2p.data.Base32;
    2223
    2324/**
     
    3435    private String _spoofHost;
    3536    private static final String HASH_HEADER = "X-I2P-DestHash";
     37    private static final String DEST64_HEADER = "X-I2P-DestB64";
     38    private static final String DEST32_HEADER = "X-I2P-DestB32";
    3639
    3740    public I2PTunnelHTTPServer(InetAddress host, int port, String privData, String spoofHost, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) {
     
    7578            Properties headers = readHeaders(in, command);
    7679            headers.setProperty(HASH_HEADER, socket.getPeerDestination().calculateHash().toBase64());
     80            headers.setProperty(DEST32_HEADER, Base32.encode(socket.getPeerDestination().calculateHash().getData()) + ".b32.i2p" );
     81            headers.setProperty(DEST64_HEADER, socket.getPeerDestination().toBase64());
     82
    7783            if ( (_spoofHost != null) && (_spoofHost.trim().length() > 0) )
    7884                headers.setProperty("Host", _spoofHost);
     
    362368                else if (HASH_HEADER.equalsIgnoreCase(name))
    363369                    continue;     // Prevent spoofing
     370                else if (DEST64_HEADER.equalsIgnoreCase(name))
     371                    continue;     // Prevent spoofing
     372                else if (DEST32_HEADER.equalsIgnoreCase(name))
     373                    continue;     // Prevent spoofing
    364374                headers.setProperty(name, value);
    365375                if (_log.shouldLog(Log.DEBUG))
  • history.txt

    r7207156 r942c316  
     12009-07-05 sponge
     2    * Added X-I2P-DestB64 and X-I2P-DestB32 http headers
     3
    142009-06-29 zzz
    25    * Big directory rework:
  • router/java/src/net/i2p/router/RouterVersion.java

    r7207156 r942c316  
    1919    public final static String ID = "Monotone";
    2020    public final static String VERSION = CoreVersion.VERSION;
    21     public final static long BUILD = 2;
     21    public final static long BUILD = 3;
    2222    /** for example "-test" */
    2323    public final static String EXTRA = "";
Note: See TracChangeset for help on using the changeset viewer.