From a5ca136a4c2c5cc23ebadcf392aeaf5815f677da Mon Sep 17 00:00:00 2001 From: Hiddify Date: Tue, 19 Mar 2024 11:41:34 +0100 Subject: [PATCH] new: add tproxy and fix crash on invalid fragment config --- config/option.go | 2 +- go.mod | 4 ++-- go.sum | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/option.go b/config/option.go index 535afda..98d4c39 100644 --- a/config/option.go +++ b/config/option.go @@ -37,11 +37,11 @@ type InboundOptions struct { EnableTunService bool `json:"enable-tun-service"` SetSystemProxy bool `json:"set-system-proxy"` MixedPort uint16 `json:"mixed-port"` + TProxyPort uint16 `json:"tproxy-port"` LocalDnsPort uint16 `json:"local-dns-port"` MTU uint32 `json:"mtu"` StrictRoute bool `json:"strict-route"` TUNStack string `json:"tun-implementation"` - TProxyPort uint16 `json:"tproxy-port"` } type URLTestOptions struct { diff --git a/go.mod b/go.mod index 0b2756e..0159e65 100644 --- a/go.mod +++ b/go.mod @@ -5,11 +5,11 @@ go 1.21.5 require ( github.com/bepass-org/wireguard-go v0.0.16-alpha github.com/golang/protobuf v1.5.3 - github.com/hiddify/ray2sing v0.0.0-20240317215336-1b509113fb3c + github.com/hiddify/ray2sing v0.0.0-20240319101544-08daaf978197 github.com/kardianos/service v1.2.2 github.com/sagernet/gomobile v0.1.3 github.com/sagernet/sing v0.3.6 - github.com/sagernet/sing-box v1.8.4 + github.com/sagernet/sing-box v1.8.9 github.com/sagernet/sing-dns v0.1.12 github.com/spf13/cobra v1.8.0 github.com/xmdhs/clash2singbox v0.0.2 diff --git a/go.sum b/go.sum index f2c28e1..f7257f5 100644 --- a/go.sum +++ b/go.sum @@ -53,8 +53,8 @@ github.com/hiddify-com/wireguard-go v0.0.2-alpha.0.20240220074702-29dc5459810f h github.com/hiddify-com/wireguard-go v0.0.2-alpha.0.20240220074702-29dc5459810f/go.mod h1:E1qZQpw2IrbRtFpTloTHGfJ2bJc4ZpZRNS497Eq5jCo= github.com/hiddify/hiddify-sing-box v1.8.9-0.20240317200213-86ca8ebe3f03 h1:LHMR3XCDrlaE1L0kLs+Z+FbR3NXTQh/wEQf82YCj39g= github.com/hiddify/hiddify-sing-box v1.8.9-0.20240317200213-86ca8ebe3f03/go.mod h1:2vu3eP0ACqN3CllaSIhWKXJToutw2s//ark656PpgEU= -github.com/hiddify/ray2sing v0.0.0-20240317215336-1b509113fb3c h1:XEsRxIymIRQJOqKc3JN7ZSdFrCsBsqNhZmRzY1f/1/4= -github.com/hiddify/ray2sing v0.0.0-20240317215336-1b509113fb3c/go.mod h1:zYKnf7EoPqrk7JOMO9BApTXxfH0sva8AKfoFywN7uuA= +github.com/hiddify/ray2sing v0.0.0-20240319101544-08daaf978197 h1:DeSFnFifp/bd83rvX4RYUwOOlCZkUGk+REuMTXBaBHk= +github.com/hiddify/ray2sing v0.0.0-20240319101544-08daaf978197/go.mod h1:UYYahiWAtp1PfWAnhZQv+GyYSLms5/foB63q3ACYryE= github.com/hiddify/wireguard-go v0.0.0-20240302132803-629b7c39b487 h1:OtYe5IXuTqnpz7uS5RFzvQHACzMyqOoiv+mDbsBrhO0= github.com/hiddify/wireguard-go v0.0.0-20240302132803-629b7c39b487/go.mod h1:K4J7/npM+VAMUeUmTa2JaA02JmyheP0GpRBOUvn3ecc= github.com/imkira/go-observer/v2 v2.0.0-20230629064422-8e0b61f11f1b h1:1+115FqGoS8p6Iry9AYmrcWDvSveH0F7P2nX1LU00qg=