diff options
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/networkd-link.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index 3324276bcc..660efedc61 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -1928,18 +1928,6 @@ static int link_enter_enslave(Link *link) { return 0; } -/* make sure the hostname is not "localhost" */ -static bool is_localhost(const char *hostname) { - assert(hostname); - - return streq(hostname, "localhost") || - streq(hostname, "localhost.") || - endswith(hostname, ".localhost") || - endswith(hostname, ".localhost.") || - endswith(hostname, ".localdomain") || - endswith(hostname, ".localdomain."); -} - static int link_configure(Link *link) { int r; |