Skip to content

Commit

Permalink
修改IP获取方式
Browse files Browse the repository at this point in the history
  • Loading branch information
zyh001 authored Sep 17, 2018
1 parent dd0922c commit 994feaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Config_Generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import commands

def getip():
myip = urllib2.urlopen('http://ipconfig.me').read()
myip = urllib2.urlopen('http://ifconfig.me').read()
myip = myip.strip()
return str(myip)

Expand Down

0 comments on commit 994feaa

Please sign in to comment.