mirror of
https://github.com/balkian/gists.git
synced 2024-11-21 17:22:29 +00:00
This commit is contained in:
commit
c3f90fc237
6
hostname.py
Normal file
6
hostname.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
try:
|
||||||
|
import urllib2
|
||||||
|
except ImportError:
|
||||||
|
from urllib.request import urlopen
|
||||||
|
response = urlopen('http://v4.ifconfig.co/ip')
|
||||||
|
HOSTNAME = response.read()
|
Loading…
Reference in New Issue
Block a user