diff options
-rw-r--r-- | hosts.txt.example | 2 | ||||
-rwxr-xr-x | up.rb | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/hosts.txt.example b/hosts.txt.example index a526dc5..aacd038 100644 --- a/hosts.txt.example +++ b/hosts.txt.example @@ -1 +1 @@ -google.de http:80/tcp @https://www.google.de +google.de http:80/tcp @https://google.de @@ -53,7 +53,8 @@ class Host begin url = URI site response = Net::HTTP.get_response url - return response.kind_of? Net::HTTPSuccess + #return response.kind_of? Net::HTTPSuccess + return [200, 301].include? response.code.to_i rescue return false end |