i think this is wrong

This commit is contained in:
sirjonasxx 2020-05-19 10:42:45 +02:00
parent c24e1fb24e
commit 54b62636e7

View File

@ -102,7 +102,6 @@ public class NormalProxyProvider extends ProxyProvider {
try {
Socket client = proxy_server.accept();
proxy = potentialProxy;
removeFromHosts();
closeAllProxies(proxy);
if (HConnection.DEBUG) System.out.println("accepted a proxy");
@ -147,6 +146,7 @@ public class NormalProxyProvider extends ProxyProvider {
@Override
protected void onConnect() {
super.onConnect();
removeFromHosts();
clearAllProxies();
}