Add naiveproxy outbound

This commit is contained in:
世界
2025-12-12 15:02:08 +08:00
parent 7e68013b05
commit ad7b982242
27 changed files with 1521 additions and 135 deletions

View File

@@ -1,6 +1,9 @@
package option
import "github.com/sagernet/sing/common/auth"
import (
"github.com/sagernet/sing/common/auth"
"github.com/sagernet/sing/common/json/badoption"
)
type NaiveInboundOptions struct {
ListenOptions
@@ -8,3 +11,13 @@ type NaiveInboundOptions struct {
Network NetworkList `json:"network,omitempty"`
InboundTLSOptionsContainer
}
type NaiveOutboundOptions struct {
DialerOptions
ServerOptions
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
InsecureConcurrency int `json:"insecure_concurrency,omitempty"`
ExtraHeaders badoption.HTTPHeader `json:"extra_headers,omitempty"`
OutboundTLSOptionsContainer
}