mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-25 13:29:27 +01:00
review fix
This commit is contained in:
parent
07fe28af95
commit
98b91e7bdd
@ -134,8 +134,9 @@ server:
|
||||
motd-formatting: true
|
||||
|
||||
# addresses/CIDRs the PROXY command can be used from
|
||||
# this should be restricted to 127.0.0.1/8 and ::1/128 (unless you have a good reason)
|
||||
# you should also add these addresses to the connection limits and throttling exemption lists
|
||||
# this should be restricted to localhost (127.0.0.1/8, ::1/128, and unix sockets),
|
||||
# unless you have a good reason. you should also add these addresses to the
|
||||
# connection limits and throttling exemption lists.
|
||||
proxy-allowed-from:
|
||||
- localhost
|
||||
# - "192.168.1.1"
|
||||
|
@ -601,6 +601,10 @@ func (server *Server) applyConfig(config *Config) (err error) {
|
||||
newISupportReplies = oldConfig.Server.isupport.GetDifference(&config.Server.isupport)
|
||||
}
|
||||
|
||||
if len(config.Server.ProxyAllowedFrom) != 0 {
|
||||
server.logger.Info("server", "Proxied IPs will be accepted from", strings.Join(config.Server.ProxyAllowedFrom, ", "))
|
||||
}
|
||||
|
||||
// we are now open for business
|
||||
err = server.setupListeners(config)
|
||||
|
||||
|
@ -155,8 +155,9 @@ server:
|
||||
motd-formatting: true
|
||||
|
||||
# addresses/CIDRs the PROXY command can be used from
|
||||
# this should be restricted to 127.0.0.1/8 and ::1/128 (unless you have a good reason)
|
||||
# you should also add these addresses to the connection limits and throttling exemption lists
|
||||
# this should be restricted to localhost (127.0.0.1/8, ::1/128, and unix sockets),
|
||||
# unless you have a good reason. you should also add these addresses to the
|
||||
# connection limits and throttling exemption lists.
|
||||
proxy-allowed-from:
|
||||
- localhost
|
||||
# - "192.168.1.1"
|
||||
|
Loading…
Reference in New Issue
Block a user