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