Make a licensing decision: it's all AGPLv3+.
[odin-cgi] / cgi / ip
diff --git a/cgi/ip b/cgi/ip
index 026617b..e6fd488 100755 (executable)
--- a/cgi/ip
+++ b/cgi/ip
@@ -1,6 +1,34 @@
 #! /usr/bin/perl
+###
+### URL shortening userv interface for Odin
+###
+### (c) 2017 Mark Wooding
+###
+
+###----- Licensing notice ---------------------------------------------------
+###
+### This file is part of the `odin.gg' service, `odin-cgi'.
+###
+### `odin-cgi' is free software; you can redistribute it and/or modify
+### it under the terms of the GNU Affero General Public License as
+### published by the Free Software Foundation; either version 3 of the
+### License, or (at your option) any later version.
+###
+### `odin-cgi' 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 Affero General Public License for more details.
+###
+### You should have received a copy of the GNU Affero General Public
+### License along with `odin-cgi'; if not, see
+### <http://www.gnu.org/licenses/>.
+
+use lib 'lib';
+use Odin;
+
 print <<EOF;
 Content-type: text/plain; charset=us-ascii
+X-AGPL-Source: $Odin::SRCURL
 
 $ENV{REMOTE_ADDR}
 EOF