From 2d79a810ee22eff7be46a159e7e49a32c6098b6e Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 26 Sep 2019 22:57:09 +0200 Subject: [PATCH] Keep it short / down to the stuff that is needed --- .../u/blog/how-to-enable-ipv6-in-applications/contents.lr | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/content/u/blog/how-to-enable-ipv6-in-applications/contents.lr b/content/u/blog/how-to-enable-ipv6-in-applications/contents.lr index 70e5b9e..55804b2 100644 --- a/content/u/blog/how-to-enable-ipv6-in-applications/contents.lr +++ b/content/u/blog/how-to-enable-ipv6-in-applications/contents.lr @@ -149,15 +149,10 @@ IPv6, you can inherit from HTTPServer and set the address family to *AF_INET6* as follows: ``` -from http.server import HTTPServer - class HTTPServerV6(HTTPServer): address_family = socket.AF_INET6 - -if __name__ == '__main__': - myv6server = HTTPServerV6 - ``` + For more details on how to use the HTTPServer in general, checkout [this stackoverflow post](https://stackoverflow.com/questions/23264569/python-3-x-basehttpserver-or-http-server).