From 97288c4df87d68daa56dc509bcc1fcf01fccd4fa Mon Sep 17 00:00:00 2001 From: Loren Eteval Date: Mon, 11 Mar 2024 21:41:17 +0800 Subject: [PATCH] Update extra dependency of tun2socks on different go version in setup.py Signed-off-by: Loren Eteval --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 9aba522..a702c06 100644 --- a/setup.py +++ b/setup.py @@ -52,16 +52,17 @@ setup( 'Xray-core < 1.8.5', 'hysteria > 1.3.5', 'hysteria2 == 2.0.0.1', - 'tun2socks > 2.5.1; platform_system != "Linux"', + 'tun2socks > 2.5.1, <= 2.5.2; platform_system != "Linux"', ], 'go1.21': [ 'Xray-core >= 1.8.5, < 1.8.8', 'hysteria2 >= 2.0.4', - 'tun2socks > 2.5.1; platform_system != "Linux"', + 'tun2socks > 2.5.1, <= 2.5.2; platform_system != "Linux"', ], 'go1.22': [ 'Xray-core >= 1.8.8', 'hysteria2 >= 2.0.4', + 'tun2socks > 2.5.2; platform_system != "Linux"', ], }, entry_points={