mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-08-25 03:22:31 +00: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)
|
||
|
}
|