Skip to content

Commit

Permalink
Merge pull request #1761 from mysteriumnetwork/add-ipset-dep
Browse files Browse the repository at this point in the history
Fix ipset tool for RPi
  • Loading branch information
soffokl authored Feb 24, 2020
2 parents 4b20b17 + c73888f commit 72d5b04
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions bin/package/sudoers/mysterium-node
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
mysterium-node ALL=NOPASSWD: /sbin/sysctl
mysterium-node ALL=NOPASSWD: /sbin/iptables
mysterium-node ALL=NOPASSWD: /usr/sbin/ipset
mysterium-node ALL=NOPASSWD: /sbin/ipset
mysterium-node ALL=NOPASSWD: /sbin/ip
mysterium-node ALL=NOPASSWD: /etc/mysterium-node/prepare-env.sh
mysterium-node ALL=NOPASSWD: /sbin/tc
Expand Down
1 change: 1 addition & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Depends:
resolvconf,
openvpn (>= 2.4.0),
ca-certificates,
ipset,
iptables,
iproute2,
wireguard,
Expand Down
2 changes: 1 addition & 1 deletion firewall/ipset/ipset.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
var Exec = defaultExec

func defaultExec(args []string) ([]string, error) {
args = append([]string{"sudo", "/usr/sbin/ipset"}, args...)
args = append([]string{"sudo", "ipset"}, args...)
output, err := cmdutil.ExecOutput(args...)
if err != nil {
return nil, errors.Wrap(err, "ipset cmd error")
Expand Down

0 comments on commit 72d5b04

Please sign in to comment.