Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion safeurl.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@
from socket import gethostbyname_ex

import re
import netaddr
try:
import netaddr
except:
# On more recent OS', the script won't be able to import the netaddr library without higher privileges.
print("You must run this script as root!")
exit()

import pycurl
import StringIO

Expand Down