Added WARP endpoint

This commit is contained in:
Shtorm
2025-06-01 22:06:34 +03:00
parent 756acc77e9
commit dfc6fce8bb
11 changed files with 380 additions and 0 deletions

View File

@@ -30,6 +30,22 @@ type WireGuardPeer struct {
Reserved []uint8 `json:"reserved,omitempty"`
}
type WireGuardWarpEndpointOptions struct {
System bool `json:"system,omitempty"`
Name string `json:"name,omitempty"`
ListenPort uint16 `json:"listen_port,omitempty"`
UDPTimeout badoption.Duration `json:"udp_timeout,omitempty"`
Workers int `json:"workers,omitempty"`
Amnezia *WireGuardAmnezia `json:"amnezia,omitempty"`
Profile *WireGuardWarpProfile `json:"profile,omitempty"`
DialerOptions
}
type WireGuardWarpProfile struct {
Detour string `json:"detour,omitempty"`
Recreate bool `json:"recreate,omitempty"`
}
type LegacyWireGuardOutboundOptions struct {
DialerOptions
SystemInterface bool `json:"system_interface,omitempty"`