Reload stops current firewall and initializes a new one.
(fwtype, configPath, monitorInterval string, bypassQueue bool, queueNum uint16)
| 116 | |
| 117 | // Reload stops current firewall and initializes a new one. |
| 118 | func Reload(fwtype, configPath, monitorInterval string, bypassQueue bool, queueNum uint16) (err error) { |
| 119 | Stop() |
| 120 | err = Init(fwtype, configPath, monitorInterval, bypassQueue, queueNum) |
| 121 | return |
| 122 | } |
| 123 | |
| 124 | // ReloadSystemRules deletes existing rules, and add them again |
| 125 | func ReloadSystemRules() { |