mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-22 18:08:14 -05:00
Merge remote-tracking branch 'origin/dev_new' into dev_new
This commit is contained in:
commit
6a268e5fa4
@ -1,5 +1,9 @@
|
|||||||
package conf
|
package conf
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/inazumav/sing-box/option"
|
||||||
|
)
|
||||||
|
|
||||||
type SingConfig struct {
|
type SingConfig struct {
|
||||||
LogConfig SingLogConfig `json:"Log"`
|
LogConfig SingLogConfig `json:"Log"`
|
||||||
NtpConfig SingNtpConfig `json:"NTP"`
|
NtpConfig SingNtpConfig `json:"NTP"`
|
||||||
@ -31,6 +35,7 @@ type SingOptions struct {
|
|||||||
EnableProxyProtocol bool `json:"EnableProxyProtocol"`
|
EnableProxyProtocol bool `json:"EnableProxyProtocol"`
|
||||||
TCPFastOpen bool `json:"EnableTFO"`
|
TCPFastOpen bool `json:"EnableTFO"`
|
||||||
SniffEnabled bool `json:"EnableSniff"`
|
SniffEnabled bool `json:"EnableSniff"`
|
||||||
|
DomainStrategy option.DomainStrategy `json:"DomainStrategy"`
|
||||||
SniffOverrideDestination bool `json:"SniffOverrideDestination"`
|
SniffOverrideDestination bool `json:"SniffOverrideDestination"`
|
||||||
FallBackConfigs *FallBackConfigForSing `json:"FallBackConfigs"`
|
FallBackConfigs *FallBackConfigForSing `json:"FallBackConfigs"`
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,7 @@ func getInboundOptions(tag string, info *panel.NodeInfo, c *conf.Options) (optio
|
|||||||
InboundOptions: option.InboundOptions{
|
InboundOptions: option.InboundOptions{
|
||||||
SniffEnabled: c.SingOptions.SniffEnabled,
|
SniffEnabled: c.SingOptions.SniffEnabled,
|
||||||
SniffOverrideDestination: c.SingOptions.SniffOverrideDestination,
|
SniffOverrideDestination: c.SingOptions.SniffOverrideDestination,
|
||||||
|
DomainStrategy: c.SingOptions.DomainStrategy,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
var tls option.InboundTLSOptions
|
var tls option.InboundTLSOptions
|
||||||
|
@ -63,7 +63,12 @@
|
|||||||
// 开启 Proxy Protocol,参见 https://github.com/haproxy/haproxy/blob/master/doc/proxy-protocol.txt
|
// 开启 Proxy Protocol,参见 https://github.com/haproxy/haproxy/blob/master/doc/proxy-protocol.txt
|
||||||
"EnableProxyProtocol": false,
|
"EnableProxyProtocol": false,
|
||||||
// 开启 TCP Fast Open
|
// 开启 TCP Fast Open
|
||||||
"EnableTFO": true
|
"EnableTFO": true,
|
||||||
|
|
||||||
|
// 设置 Domain Strategy
|
||||||
|
// 可选 prefer_ipv4 / prefer_ipv6 / ipv4_only / ipv6_only
|
||||||
|
"DomainStrategy": "ipv4_only",
|
||||||
|
|
||||||
// More
|
// More
|
||||||
}
|
}
|
||||||
/*,
|
/*,
|
||||||
@ -81,6 +86,7 @@
|
|||||||
"Core": "sing",
|
"Core": "sing",
|
||||||
"EnableProxyProtocol": true,
|
"EnableProxyProtocol": true,
|
||||||
"EnableTFO": true
|
"EnableTFO": true
|
||||||
|
"DomainStrategy": "ipv4_only",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user