mirror of
https://github.com/nxshock/gonx.git
synced 2025-07-01 23:53:35 +05:00
Implement reload config feature
This commit is contained in:
parent
9447891759
commit
5903c6fbcd
4 changed files with 102 additions and 24 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue