Changeset 2999638


Ignore:
Timestamp:
Feb 12, 2018 5:20:23 PM (3 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
1826fce
Parents:
012fb4ca
Message:

Proxy: Update clearnet user-agent (ticket #2163)

File:
1 edited

Legend:

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

    r012fb4ca r2999638  
    8585
    8686    public static final String AUTH_REALM = "I2P HTTP Proxy";
     87    private static final String UA_I2P = "User-Agent: MYOB/6.66 (AN/ON)\r\n";
     88    private static final String UA_CLEARNET = "User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:58.0) Gecko/20100101 Firefox/58.0\r\n";
    8789
    8890    /**
     
    10601062                            // let's not advertise to external sites that we are from I2P
    10611063                            if(usingWWWProxy || usingInternalOutproxy) {
    1062                                 newRequest.append("User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Firefox/24.0\r\n");
     1064                                newRequest.append(UA_CLEARNET);
    10631065                            } else {
    1064                                 newRequest.append("User-Agent: MYOB/6.66 (AN/ON)\r\n");
     1066                                newRequest.append(UA_I2P);
    10651067                            }
    10661068                        }
Note: See TracChangeset for help on using the changeset viewer.