Skip to content

Commit

Permalink
fix: review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaile committed Sep 29, 2023
1 parent 05dc688 commit eca1852
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions packages/ns-api/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ define Package/ns-api/install
$(INSTALL_DATA) ./files/ns.dhcp.json $(1)/usr/share/rpcd/acl.d/
$(INSTALL_BIN) ./files/ns.dns $(1)/usr/libexec/rpcd/
$(INSTALL_DATA) ./files/ns.dns.json $(1)/usr/share/rpcd/acl.d/
$(INSTALL_BIN) ./files/ns.mwan $(1)/usr/libexec/rpcd/
$(INSTALL_DATA) ./files/ns.mwan.json $(1)/usr/share/rpcd/acl.d/
$(INSTALL_DIR) $(1)/lib/upgrade/keep.d
$(INSTALL_CONF) files/msmtp.keep $(1)/lib/upgrade/keep.d/msmtp
$(LN) /usr/bin/msmtp $(1)/usr/sbin/sendmail
Expand Down
10 changes: 5 additions & 5 deletions packages/ns-api/files/ns.mwan
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ elif cmd == 'call':
data['name'],
data['policy'],
data['label'],
data['protocol'] if 'protocol' in data else None,
data['source_address'] if 'source_address' in data else None,
data['source_port'] if 'source_port' in data else None,
data['destination_address'] if 'destination_address' in data else None,
data['destination_port'] if 'destination_port' in data else None,
data['protocol'],
data['source_address'],
data['source_port'],
data['destination_address'],
data['destination_port'],
)
print(json.dumps({'message': 'success'}))
except KeyError as e:
Expand Down

0 comments on commit eca1852

Please sign in to comment.