lib/dyndnsd/helper.rb in dyndnsd-2.0.0.rc1 vs lib/dyndnsd/helper.rb in dyndnsd-2.0.0.rc2
- old
+ new
@@ -11,12 +11,12 @@
true
end
def self.ip_valid?(ip)
IPAddr.new(ip)
- return true
+ true
rescue ArgumentError
- return false
+ false
end
def self.user_allowed?(username, password, users)
(users.key? username) && (users[username]['password'] == password)
end