Skip to content

Commit

Permalink
Merge pull request #1224 from ton31337/fix/parse_incoming_fqdn_capabi…
Browse files Browse the repository at this point in the history
…lity

Make sure we accept received Hostname capability
  • Loading branch information
thomas-mangin authored Jul 11, 2024
2 parents 86b2a89 + 24fcad7 commit babbe48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/exabgp/bgp/message/open/capability/hostname.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@


from exabgp.bgp.message.open.capability.capability import Capability
from exabgp.util.dns import host, domain


@Capability.register()
class HostName(Capability):
ID = Capability.CODE.HOSTNAME
HOSTNAME_MAX_LEN = 64

def __init__(self, host_name, domain_name):
def __init__(self, host_name = host(), domain_name = domain()):
self.host_name = host_name
self.domain_name = domain_name

Expand Down

0 comments on commit babbe48

Please sign in to comment.