Browse Source

fix: gun-plugin occupy UDP port

master
Dnomd343 3 years ago
parent
commit
8e248744c5
  1. 4
      ProxyBuilder/Shadowsocks.py

4
ProxyBuilder/Shadowsocks.py

@ -153,8 +153,8 @@ def __baseConfig(proxyInfo: dict, socksPort: int) -> dict: # 生成基本配置
return config return config
def __pluginWithUdp(plugin: str, pluginParam: str) -> bool: # 插件是否使用UDP通讯 def __pluginWithUdp(plugin: str, pluginParam: str) -> bool: # 插件是否使用UDP通讯
if plugin in ['obfs-local', 'simple-tls', 'ck-client', 'gq-client', if plugin in ['obfs-local', 'simple-tls', 'ck-client',
'mtt-client', 'rabbit-plugin', 'gun-plugin']: # 不使用UDP通讯的插件 'gq-client', 'mtt-client', 'rabbit-plugin']: # 不使用UDP通讯的插件
return False return False
if plugin in ['v2ray-plugin', 'xray-plugin', 'gost-plugin']: if plugin in ['v2ray-plugin', 'xray-plugin', 'gost-plugin']:
if 'mode=quic' not in pluginParam.split(';'): # 非quic模式不使用UDP通讯 if 'mode=quic' not in pluginParam.split(';'): # 非quic模式不使用UDP通讯

Loading…
Cancel
Save