Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bgpfeeder
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class IpAddrAndPort
#
def initialize(spec, default_port=nil)
raise ArgumentError.new("default_port must be a number") unless
default_port.nil? || default_port.kind_of?(Fixnum)
default_port.nil? || default_port.kind_of?(Integer)

spec1, spec2 = spec.split(/-/, 2)
@from=nil
Expand Down Expand Up @@ -1037,7 +1037,7 @@ module BGP
attr_reader :last_updated

def initialize(file)
raise Errno::ENOENT unless File.exists?(file)
raise Errno::ENOENT unless File.exist?(file)
@file = file
@last_updated = nil
end
Expand Down