Skip to content

Commit

Permalink
Do not use absolute path for ipset
Browse files Browse the repository at this point in the history
  • Loading branch information
soffokl committed Feb 24, 2020
1 parent 78b47da commit c73888f
Show file tree
Hide file tree
Showing 2 changed files with 2 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
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 c73888f

Please sign in to comment.