From 252a1aa165886b94c7e9039e8909a22656409b54 Mon Sep 17 00:00:00 2001 From: Jonathan Moody <103143855+moodyjon@users.noreply.github.com> Date: Thu, 29 Dec 2022 13:16:47 -0600 Subject: [PATCH] Remove override for 'localhost' allowing Hub to start server on IPv6. --- hub/env.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/hub/env.py b/hub/env.py index ce18748..49cb783 100644 --- a/hub/env.py +++ b/hub/env.py @@ -117,10 +117,6 @@ class Env: result = [part.strip() for part in host.split(',')] if len(result) == 1: result = result[0] - if result == 'localhost': - # 'localhost' resolves to ::1 (ipv6) on many systems, which fails on default setup of - # docker, using 127.0.0.1 instead forces ipv4 - result = '127.0.0.1' return result def sane_max_sessions(self):