From 8e248744c5229641232c710210198e9cb193713a Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sat, 5 Mar 2022 14:25:55 +0800 Subject: [PATCH] fix: gun-plugin occupy UDP port --- ProxyBuilder/Shadowsocks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ProxyBuilder/Shadowsocks.py b/ProxyBuilder/Shadowsocks.py index 36082f5..f77cf53 100644 --- a/ProxyBuilder/Shadowsocks.py +++ b/ProxyBuilder/Shadowsocks.py @@ -153,8 +153,8 @@ def __baseConfig(proxyInfo: dict, socksPort: int) -> dict: # 生成基本配置 return config def __pluginWithUdp(plugin: str, pluginParam: str) -> bool: # 插件是否使用UDP通讯 - if plugin in ['obfs-local', 'simple-tls', 'ck-client', 'gq-client', - 'mtt-client', 'rabbit-plugin', 'gun-plugin']: # 不使用UDP通讯的插件 + if plugin in ['obfs-local', 'simple-tls', 'ck-client', + 'gq-client', 'mtt-client', 'rabbit-plugin']: # 不使用UDP通讯的插件 return False if plugin in ['v2ray-plugin', 'xray-plugin', 'gost-plugin']: if 'mode=quic' not in pluginParam.split(';'): # 非quic模式不使用UDP通讯