Commit ec69f852 authored by Branko Mikić's avatar Branko Mikić
Browse files

~ ipturntables is now allowed to be run with superuser privildges only.

parent edca0ffa
......@@ -410,6 +410,8 @@ formatSubnetAsHexID() {
(( ${#@} == 0 )) && printAbout
[ $USER != "root" ] && error 46 "Superuser priviledges needed. This script makes heavy use of 'iptables' command which only allowed to be used by root."
[ "$1" == "-6" ] && arg=6
[ "$1" == "-4" ] && arg=4
if [ ! -v arg ]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment