modify network hostname dot illegal
This commit is contained in:
parent
eb4398622c
commit
46b0f39eec
@ -1,10 +1,11 @@
|
||||
From cde336c5228c4987fc0c4bd9e2611ba655597759 Mon Sep 17 00:00:00 2001
|
||||
Date: Thu, 6 Feb 2020 09:58:06 +0800
|
||||
From 1ce4ab95a64e64b7b4eab52c2172149816900572 Mon Sep 17 00:00:00 2001
|
||||
Date: Thu, 6 Feb 2020 12:08:08 +0800
|
||||
Subject: [PATCH] modify network hostname dot illegal
|
||||
|
||||
---
|
||||
anaconda-29.24.7/pyanaconda/core/regexes.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
anaconda-29.24.7/pyanaconda/network.py | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/pyanaconda/core/regexes.py b/pyanaconda/core/regexes.py
|
||||
index 1f1da07..544d40e 100644
|
||||
@ -19,6 +20,19 @@ index 1f1da07..544d40e 100644
|
||||
|
||||
# URL Hostname
|
||||
# This matches any hostname, IPv4 literal or properly encased IPv6 literal
|
||||
diff --git a/pyanaconda/network.py b/pyanaconda/network.py
|
||||
index 02dba66..1cde6d2 100644
|
||||
--- a/pyanaconda/network.py
|
||||
+++ b/pyanaconda/network.py
|
||||
@@ -121,7 +121,7 @@ def sanityCheckHostname(hostname):
|
||||
return (False, _("Host names can only contain the characters 'a-z', "
|
||||
"'A-Z', '0-9', '-', or '.', parts between periods "
|
||||
"must contain something being 63 or fewer "
|
||||
- "characters and cannot start or end with '-'."))
|
||||
+ "characters and cannot start or end with '.'and'-'."))
|
||||
|
||||
return (True, "")
|
||||
|
||||
--
|
||||
1.8.3.1
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user