Merge pull request #27 from booty-bumping/save-config

Make sure config is saved after setting static routes
This commit is contained in:
Izaya 2019-09-23 08:08:16 +00:00 committed by GitHub
commit 37db09d472
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -268,7 +268,9 @@ end
function set_route(to,laddr,raddr)
cfg.sroutes[to] = {laddr,raddr,0}
saveconfig()
end
function del_route(to)
cfg.sroutes[to] = nil
saveconfig()
end