新月の開発

c0a2c7b1 :Anonymous [AU] w5Nwr4MiKrs 2024-02-14 15:27
バインドされるアドレスがおかしかったので、以下のパッチをあてました。
動いているような、動いていないような

------

% diff -u httpd.py /usr/local/saku/lib/python3.11/site-packages/shingetsu/httpd.py
--- httpd.py 2024-02-05 13:59:46.998656372 +0900
+++ /usr/local/saku/lib/python3.11/site-packages/shingetsu/httpd.py 2024-02-14 15:13:58.994625522 +0900
@@ -30,6 +30,7 @@

import os
import threading
+import socket

from . import config
from . import LightCGIHTTPServer
@@ -51,6 +52,9 @@
server_address = (config.bind_addr, config.port)
HandlerClass.server_version = config.version
HandlerClass.root_index = config.root_index
+ print("host# {}".format(server_address))
+ if ':' in config.bind_addr:
+ ServerClass.address_family = socket.AF_INET6
self.httpserv = ServerClass(server_address, HandlerClass)

def run(self):
Powered by shinGETsu.