summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hosts.txt.example2
-rwxr-xr-xup.rb3
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
diff --git a/up.rb b/up.rb
index 6251ae6..0db1ea0 100755
--- a/up.rb
+++ b/up.rb
@@ -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