Pass libnftables.so.1 path into python script
This commit is contained in:
parent
299d04142f
commit
de66b5931c
|
@ -18,7 +18,7 @@ in
|
|||
after = [ "wireguard-wg0.service" ];
|
||||
|
||||
script = ''
|
||||
${wireguard-nat-nftables}/bin/wireguard-nat-nftables.py ${config}
|
||||
${wireguard-nat-nftables}/bin/wireguard-nat-nftables.py ${config} ${pkgs.nftables}/lib
|
||||
'';
|
||||
|
||||
serviceConfig = {
|
||||
|
|
|
@ -15,7 +15,7 @@ def main():
|
|||
wg_interface = config["wg_interface"]
|
||||
pubkey_port_mapping = config["pubkey_port_mapping"]
|
||||
|
||||
nft = nftables.Nftables()
|
||||
nft = nftables.Nftables(sys.argv[2] + "/libnftables.so.1")
|
||||
nft.set_json_output(True)
|
||||
nft.set_handle_output(True)
|
||||
|
||||
|
|
Loading…
Reference in a new issue