This commit is contained in:
chermack
2026-07-26 00:09:57 +08:00
commit 059be96536
134 changed files with 19678 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
package core
// Config 结构体
type Config struct {
RunType string `json:"run_type"`
LocalAddr string `json:"local_addr"`
LocalPort int `json:"local_port"`
RemoteAddr string `json:"remote_addr"`
RemotePort int `json:"remote_port"`
Password []string `json:"password"`
LogLevel int `json:"log_level"`
}
// SSL 结构体
type SSL struct {
Cert string `json:"cert"`
Cipher string `json:"cipher"`
CipherTls13 string `json:"cipher_tls13"`
Alpn []string `json:"alpn"`
ReuseSession bool `json:"reuse_session"`
SessionTicket bool `json:"session_ticket"`
Curves string `json:"curves"`
Sni string `json:"sni"`
}
// TCP 结构体
type TCP struct {
NoDelay bool `json:"no_delay"`
KeepAlive bool `json:"keep_alive"`
ReusePort bool `json:"reuse_port"`
FastOpen bool `json:"fast_open"`
FastOpenQlen int `json:"fast_open_qlen"`
}