This commit is contained in:
yuhuihuang
2020-08-16 14:51:57 +08:00
parent 88c595dab2
commit cafcb74e22

View File

@@ -202,7 +202,7 @@ public class DefaultLauncher extends Launcher {
if (options.isFullscreen()) if (options.isFullscreen())
res.add("--fullscreen"); res.add("--fullscreen");
if (options.getProxy() != null) { if (options.getProxy() != null && options.getProxy().type() == Proxy.Type.SOCKS) {
InetSocketAddress address = (InetSocketAddress) options.getProxy().address(); InetSocketAddress address = (InetSocketAddress) options.getProxy().address();
if (address != null) { if (address != null) {
res.add("--proxyHost"); res.add("--proxyHost");