mirror of
https://github.com/cmur2/dyndnsd.git
synced 2025-08-08 18:48:38 +02:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
2a5140fcf0 | |||
2edb9522f1 |
@@ -201,7 +201,7 @@ module Dyndnsd
|
|||||||
# configure rack
|
# configure rack
|
||||||
app = Daemon.new(config, db, updater, responder)
|
app = Daemon.new(config, db, updater, responder)
|
||||||
app = Rack::Auth::Basic.new(app, "DynDNS") do |user,pass|
|
app = Rack::Auth::Basic.new(app, "DynDNS") do |user,pass|
|
||||||
allow = (config['users'].has_key? user) and (config['users'][user]['password'] == pass)
|
allow = ((config['users'].has_key? user) and (config['users'][user]['password'] == pass))
|
||||||
if not allow
|
if not allow
|
||||||
Dyndnsd.logger.warn "Login failed for #{user}"
|
Dyndnsd.logger.warn "Login failed for #{user}"
|
||||||
Metriks.meter('requests.auth_failed').mark
|
Metriks.meter('requests.auth_failed').mark
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
module Dyndnsd
|
module Dyndnsd
|
||||||
VERSION = "1.6.0"
|
VERSION = "1.6.1"
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user