projects
/
dyn-nsupdate.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
migrate server scripts to python 3
[dyn-nsupdate.git]
/
server-scripts
/
checkip
diff --git
a/server-scripts/checkip
b/server-scripts/checkip
index d4eec23488ba429ae5d4d6312c866e97a29f5a13..55ff34369b96d6a8e2dffc8a18c6e8ca22a32cb7 100755
(executable)
--- a/
server-scripts/checkip
+++ b/
server-scripts/checkip
@@
-1,4
+1,4
@@
-#!/usr/bin/env python
2
+#!/usr/bin/env python
3
# Copyright (c) 2014, Ralf Jung <post@ralfj.de>
# All rights reserved.
#
# Copyright (c) 2014, Ralf Jung <post@ralfj.de>
# All rights reserved.
#
@@
-25,8
+25,8
@@
import os
# print headers
import os
# print headers
-print
"Content-Type: text/plain"
-print
""
+print
("Content-Type: text/plain")
+print
("")
# print content
# print content
-print
os.environ["REMOTE_ADDR"]
+print
(os.environ["REMOTE_ADDR"])