Implement reload config feature

This commit is contained in:
nxshock 2023-12-29 12:16:35 +05:00
parent 9447891759
commit 5903c6fbcd
4 changed files with 102 additions and 24 deletions

View file

@ -55,6 +55,8 @@ func LoadConfig(configFilePath string) (*Config, error) {
}
func (c *Config) initTls() error {
slog.Debug("Loading TLS keys")
c.tlsConfig = new(tls.Config)
for hostName := range c.proxyRules {