Add ability to clear the proxy address.

Closes #12499
This commit is contained in:
Sgn-32
2022-10-07 22:46:32 +02:00
committed by Greyson Parrelli
parent de329166d2
commit cdb7f07368
3 changed files with 20 additions and 9 deletions

View File

@@ -67,6 +67,11 @@ public final class SignalProxyUtil {
startListeningToWebsocket();
}
public static void disableAndClearProxy(){
disableProxy();
SignalStore.proxy().setProxy(null);
}
/**
* A blocking call that will wait until the websocket either successfully connects, or fails.
* It is assumed that the app state is already configured how you would like it, e.g. you've