mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-05-14 00:51:12 +03:00
26 lines
606 B
Go
26 lines
606 B
Go
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"`
|
|
}
|