mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-03-13 14:52:21 +01:00
Allow _
in Hostname
s
These are perfectly fine and are relied on by BIP 353, so we need to ensure we allow them.
This commit is contained in:
parent
75d20e5a5c
commit
829dc34d10
1 changed files with 1 additions and 2 deletions
|
@ -1496,8 +1496,7 @@ impl Hostname {
|
|||
s.len() <= 255 &&
|
||||
s.chars().all(|c|
|
||||
c.is_ascii_alphanumeric() ||
|
||||
c == '.' ||
|
||||
c == '-'
|
||||
c == '.' || c == '_' || c == '-'
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue