Add MTProxy, MASQUE, VPN, Link parser. Update AmneziaWG. Remove Tunneling

This commit is contained in:
Sergei Maklagin
2026-04-29 22:11:30 +03:00
parent 09f9f114aa
commit 04908a6a67
158 changed files with 7994 additions and 2277 deletions

25
option/vpn.go Normal file
View File

@@ -0,0 +1,25 @@
package option
import (
"net/netip"
"github.com/sagernet/sing/common/json/badoption"
)
type VPNClientEndpointOptions struct {
Address netip.Addr `json:"address"`
Key string `json:"key"`
Outbound Outbound `json:"outbound"`
}
type VPNServerEndpointOptions struct {
Address netip.Addr `json:"address"`
Users []VPNUser `json:"users"`
Inbounds []Inbound `json:"inbounds"`
ConnectTimeout badoption.Duration `json:"connect_timeout,omitempty"`
}
type VPNUser struct {
Address netip.Addr `json:"address"`
Key string `json:"key"`
}