X-Git-Url: https://git.ralfj.de/dyn-nsupdate.git/blobdiff_plain/fe20951621dab82ac4a38c0cb2ba95fa3ad11ed5..a05ca1fc13338045c3d531615b868510ce062078:/server-scripts/checkip?ds=sidebyside diff --git a/server-scripts/checkip b/server-scripts/checkip index be969f3..55ff343 100755 --- a/server-scripts/checkip +++ b/server-scripts/checkip @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # Copyright (c) 2014, Ralf Jung # All rights reserved. # @@ -21,16 +21,12 @@ # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# -# The views and conclusions contained in the software and documentation are those -# of the authors and should not be interpreted as representing official policies, -# either expressed or implied, of the FreeBSD Project. import os # print headers -print "Content-Type: text/plain" -print "" +print("Content-Type: text/plain") +print("") # print content -print os.environ["REMOTE_ADDR"] +print(os.environ["REMOTE_ADDR"])