Skip to content

Commit

Permalink
ns-openvpn: fix call to firewall lib
Browse files Browse the repository at this point in the history
The method changed named on python4-nethsec 0.0.14
  • Loading branch information
gsanchietti committed Nov 7, 2023
1 parent 2c47b4e commit ad369e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ns-openvpn/files/ns-openvpnrw-setup
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if os.path.isdir(f'/etc/openvpn/{instance}'):
sys.exit(0)

u = EUci()
firewall.add_to_lan(u, 'tunrw')
firewall.add_device_to_lan(u, 'tunrw')
olink = f"openvpn/{instance}"
ovpn_interface = firewall.add_vpn_interface(u, 'rwopenvpn', 'tunrw', link=olink)
ovpn_zone = firewall.add_trusted_zone(u, "rwpenvpn", [ovpn_interface], link=olink)
Expand Down

0 comments on commit ad369e3

Please sign in to comment.