Skip to content

Commit

Permalink
更换IP获取地址
Browse files Browse the repository at this point in the history
  • Loading branch information
iPatrick authored Oct 21, 2017
1 parent dec29d2 commit 7144ff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def WriteClientJson():
openjsonfile.close()

#获取本机IP地址
myip = urllib2.urlopen('http://members.3322.org/dyndns/getip').read()
myip = urllib2.urlopen('https://api.ipify.org').read()
myip = myip.strip()

#加载客户端配置模板
Expand Down

0 comments on commit 7144ff2

Please sign in to comment.