forked from External/ergo
make error recovery configurable
This commit is contained in:
parent
80968d000f
commit
7b58bf76ef
5 changed files with 28 additions and 8 deletions
|
|
@ -23,6 +23,12 @@ func (server *Server) getPassword() []byte {
|
|||
return server.password
|
||||
}
|
||||
|
||||
func (server *Server) RecoverFromErrors() bool {
|
||||
server.configurableStateMutex.RLock()
|
||||
defer server.configurableStateMutex.RUnlock()
|
||||
return server.recoverFromErrors
|
||||
}
|
||||
|
||||
func (server *Server) ProxyAllowedFrom() []string {
|
||||
server.configurableStateMutex.RLock()
|
||||
defer server.configurableStateMutex.RUnlock()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue