X-Git-Url: https://iankelling.org/git/?p=iankelling.org;a=blobdiff_plain;f=_site%2Fcgi%2Fpubip;fp=_site%2Fcgi%2Fpubip;h=06e649fa9eaeea6c1ac8099a48248696487397d6;hp=0000000000000000000000000000000000000000;hb=f32d5784d1a672764705737bb1f25d7f1fcf6038;hpb=56cff87ea0949598b121518b7887cca1f99c619d diff --git a/_site/cgi/pubip b/_site/cgi/pubip new file mode 100755 index 0000000..06e649f --- /dev/null +++ b/_site/cgi/pubip @@ -0,0 +1,25 @@ +#!/usr/bin/env ruby +# encoding: utf-8 +# Copyright (C) 2016 Ian Kelling + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +Encoding.default_external = Encoding::UTF_8 + +require 'cgi' + +puts "Content-type: text/plain\n\n" +cgi = CGI.new +puts cgi.remote_addr +exit 0