mirror of
https://github.com/p4gefau1t/trojan-go.git
synced 2024-04-21 12:21:34 +00:00
18 lines
357 B
Go
18 lines
357 B
Go
package proxy
|
|
|
|
import "github.com/p4gefau1t/trojan-go/config"
|
|
|
|
type Config struct {
|
|
RunType string `json:"run_type" yaml:"run-type"`
|
|
LogLevel int `json:"log_level" yaml:"log-level"`
|
|
LogFile string `json:"log_file" yaml:"log-file"`
|
|
}
|
|
|
|
func init() {
|
|
config.RegisterConfigCreator(Name, func() interface{} {
|
|
return &Config{
|
|
LogLevel: 1,
|
|
}
|
|
})
|
|
}
|