From d04d8362945d39add4515db0fab22699f207af54 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 29 Dec 2024 08:50:47 +0800 Subject: Use single config value for listen addr --- config/config.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'config') diff --git a/config/config.go b/config/config.go index 7c38341..e8fdcbb 100644 --- a/config/config.go +++ b/config/config.go @@ -25,8 +25,7 @@ type Config struct { } `yaml:"meta"` Server struct { Name string `yaml:"name,omitempty"` - Host string `yaml:"host"` - Port int `yaml:"port"` + Addr string `yaml:"addr"` } `yaml:"server"` } -- cgit v1.2.3