mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-15 05:31:18 +08:00
24 lines
449 B
Go
24 lines
449 B
Go
|
package config
|
||
|
|
||
|
import (
|
||
|
"encoding/json"
|
||
|
)
|
||
|
|
||
|
type TuicServer struct {
|
||
|
Enable bool
|
||
|
Listen string
|
||
|
Token []string
|
||
|
Certificate string
|
||
|
PrivateKey string
|
||
|
CongestionController string
|
||
|
MaxIdleTime int
|
||
|
AuthenticationTimeout int
|
||
|
ALPN []string
|
||
|
MaxUdpRelayPacketSize int
|
||
|
}
|
||
|
|
||
|
func (t TuicServer) String() string {
|
||
|
b, _ := json.Marshal(t)
|
||
|
return string(b)
|
||
|
}
|