From f3cff053bf3673043eb33ee2ab8b268f6ed4ab94 Mon Sep 17 00:00:00 2001 From: Loren Eteval Date: Mon, 11 Mar 2024 21:41:17 +0800 Subject: [PATCH] Select Tun2socks dependency by Go version 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={