Add SwitchOptions and MaxTotalQueueSize

This commit is contained in:
Neil Alexander 2018-12-02 22:49:27 +00:00
parent 05b07adba2
commit 86da073226
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
6 changed files with 34 additions and 22 deletions

View file

@ -105,6 +105,10 @@ func (c *Core) Start(nc *config.NodeConfig, log *log.Logger) error {
return err
}
c.switchTable.doAdmin(func() {
c.switchTable.queuetotalmaxsize = nc.SwitchOptions.MaxTotalQueueSize
})
c.sessions.setSessionFirewallState(nc.SessionFirewall.Enable)
c.sessions.setSessionFirewallDefaults(
nc.SessionFirewall.AllowFromDirect,