diff --git a/shadowsocks/shell.py b/shadowsocks/shell.py index 69853d0..babac98 100644 --- a/shadowsocks/shell.py +++ b/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)