Browse Source

set udp_timeout default value

dev
BreakWa11 9 years ago
parent
commit
cb866dc8fe
  1. 2
      shadowsocks/shell.py

2
shadowsocks/shell.py

@ -236,7 +236,7 @@ def get_config(is_local):
config['obfs_param'] = to_str(config.get('obfs_param', ''))
config['port_password'] = config.get('port_password', None)
config['timeout'] = int(config.get('timeout', 300))
config['udp_timeout'] = int(config.get('udp_timeout', config['timeout']))
config['udp_timeout'] = int(config.get('udp_timeout', 120))
config['udp_cache'] = int(config.get('udp_cache', 64))
config['fast_open'] = config.get('fast_open', False)
config['workers'] = config.get('workers', 1)

Loading…
Cancel
Save