From cb866dc8fe524d15264c2359f743fcb1e8d4d2f2 Mon Sep 17 00:00:00 2001 From: BreakWa11 Date: Thu, 19 May 2016 13:42:52 +0800 Subject: [PATCH] set udp_timeout default value --- shadowsocks/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)