allow to set address in configuration file

This commit is contained in:
Peven
2021-03-17 18:08:22 +08:00
parent 9952c3e90b
commit 03f5a54764
2 changed files with 3 additions and 1 deletions

View File

@ -31,6 +31,7 @@ type Config struct {
} `yaml:"preview" json:"preview"`
} `yaml:"info"`
Server struct {
Address string `yaml:"address"`
Port string `yaml:"port"` //端口
Search bool `yaml:"search"` //允许搜索
Static string `yaml:"static"`