mirror of
https://github.com/balkian/gists.git
synced 2025-04-10 23:19:23 +00:00
Add 'repos/b21443fe1d57fdfe0fe2f79827be3551/' from commit 'c3f90fc23787e53f8c2f2aafa9ac1d5880fb01ef'
git-subtree-dir: repos/b21443fe1d57fdfe0fe2f79827be3551 git-subtree-mainline: 641416ea0a4b40713c7cb23c0af75dfbff460529 git-subtree-split: c3f90fc23787e53f8c2f2aafa9ac1d5880fb01ef
This commit is contained in:
commit
2ee5da5427
6
repos/b21443fe1d57fdfe0fe2f79827be3551/hostname.py
Normal file
6
repos/b21443fe1d57fdfe0fe2f79827be3551/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…
x
Reference in New Issue
Block a user