mirror of
https://github.com/sot-tech/mochi.git
synced 2026-05-12 11:08:36 -07:00
config: fixed parsing of configs
This commit is contained in:
committed by
Jimmy Zelinskie
parent
919f97e4bf
commit
34428cf465
@@ -70,8 +70,8 @@ type Config struct {
|
||||
IPStoreConfig interface{} `yaml:"ip_store_config"`
|
||||
}
|
||||
|
||||
func newConfig(srvcfg interface{}) (*Config, error) {
|
||||
bytes, err := yaml.Marshal(srvcfg)
|
||||
func newConfig(srvcfg *config.ServerConfig) (*Config, error) {
|
||||
bytes, err := yaml.Marshal(srvcfg.Config)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user