mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-06-27 04:39:02 +03:00
Add Snell protocol. Refactor MASQUE HTTP/2, Fair Queue. Update XHTTP, OpenVPN, Sudoku, Fallback. Fixes
This commit is contained in:
24
option/snell.go
Normal file
24
option/snell.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package option
|
||||
|
||||
type SnellOutboundOptions struct {
|
||||
DialerOptions
|
||||
ServerOptions
|
||||
PSK string `json:"psk"`
|
||||
Version int `json:"version,omitempty"`
|
||||
Reuse bool `json:"reuse,omitempty"`
|
||||
Network NetworkList `json:"network,omitempty"`
|
||||
Obfs *SnellObfsOptions `json:"obfs,omitempty"`
|
||||
}
|
||||
|
||||
type SnellInboundOptions struct {
|
||||
ListenOptions
|
||||
PSK string `json:"psk"`
|
||||
Version int `json:"version,omitempty"`
|
||||
Network NetworkList `json:"network,omitempty"`
|
||||
Obfs *SnellObfsOptions `json:"obfs,omitempty"`
|
||||
}
|
||||
|
||||
type SnellObfsOptions struct {
|
||||
Mode string `json:"mode,omitempty"`
|
||||
Host string `json:"host,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user