Add sing-box API service

This commit is contained in:
世界
2026-08-30 17:41:41 +08:00
parent 2bd6a233dc
commit c12367a013
36 changed files with 2075 additions and 849 deletions
+11
View File
@@ -0,0 +1,11 @@
package option
import "github.com/sagernet/sing/common/json/badoption"
type APIServiceOptions struct {
ListenOptions
Secret string `json:"secret,omitempty"`
AccessControlAllowOrigin badoption.Listable[string] `json:"access_control_allow_origin,omitempty"`
AccessControlAllowPrivateNetwork bool `json:"access_control_allow_private_network,omitempty"`
InboundTLSOptionsContainer
}