bin/servedir in servedir-0.4 vs bin/servedir in servedir-0.5

- old
+ new

@@ -1,15 +1,17 @@ #!/usr/bin/env ruby -# This is free and unencumbered software released into the public domain. -# See the `UNLICENSE` file or <http://unlicense.org/> for more details. +# This is free software released into the public domain (CC0 license). +# +# See the `COPYING` file or <http://creativecommons.org/publicdomain/zero/1.0/> +# for more details. require 'open-uri' require 'socket' require 'timeout' require 'webrick' -IP_DISCO_SERVICE = 'http://automation.whatismyip.com/n09230945.asp' +IP_DISCO_SERVICE = 'http://ipecho.net/plain' LAN_IP = '169.254.0.1' PRIVATE_LIST_FILE = '.private' MAX_PORT = 2**16 MAX_DISCOVER_WAIT = 4 # seconds