new: add tproxy and fix crash on invalid fragment config

This commit is contained in:
Hiddify
2024-03-19 11:41:34 +01:00
parent 8f0f4755aa
commit a5ca136a4c
3 changed files with 5 additions and 5 deletions

View File

@@ -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 {

4
go.mod
View File

@@ -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

4
go.sum
View File

@@ -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=