Skip to content

Commit

Permalink
Fix: Remove debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
jage committed Feb 6, 2024
1 parent e92a22b commit 5af2e07
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/net/ssh/known_hosts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,17 @@ def initialize(key, comment: nil)
end

def matches_principal?(server_key, hostname)
pp [:debug, :valid_principals, server_key.valid_principals]
server_key.valid_principals.empty? || server_key.valid_principals.include?(hostname)
end

def matches_validity?(server_key)
# If valid_after is in the future, fail
if server_key.valid_after && server_key.valid_after > Time.now
pp [:debug, :after, server_key.valid_after, Time.now]
return false
end

# if valid_before is in the past, fail
if server_key.valid_before && server_key.valid_before < Time.now
pp [:debug, :before, server_key.valid_before, Time.now]
return false
end

Expand Down

0 comments on commit 5af2e07

Please sign in to comment.