Compare commits

...

7 Commits

Author SHA1 Message Date
dgtlmoon
c81cda08f7 fix curl request 2022-12-26 16:45:52 +01:00
dgtlmoon
5d4dee2a1e Merge branch 'master' into ipv6 2022-12-26 16:34:59 +01:00
dgtlmoon
4a86637f2d add ipv6 checks 2022-12-26 16:34:05 +01:00
dgtlmoon
9b4b5cae1c Merge branch 'ipv6' of https://github.com/dom6770/changedetection.io into ipv6 2022-12-26 16:33:11 +01:00
dgtlmoon
fc6424c39e Test improvements (#1264) 2022-12-26 14:17:40 +01:00
dom6770
366baaf322 fixed wrong ipv6 argument position at ssl_mode 2022-11-19 08:26:38 -06:00
dom6770
6c1b9bcc5c added ipv6 support to the eventlet listener 2022-11-19 08:14:06 -06:00
2 changed files with 6 additions and 2 deletions

View File

@@ -68,6 +68,9 @@ jobs:
# Should return 0 (no error) when grep finds it
curl -s http://localhost:5556 |grep -q checkbox-uuid
curl -s http://localhost:5556/rss|grep -q rss-specification
# and IPv6
curl -s -g -6 "http://[::1]:5556"|grep -q checkbox-uuid
curl -s -g -6 "http://[::1]:5556/rss"|grep -q rss-specification
#export WEBDRIVER_URL=http://localhost:4444/wd/hub
#pytest tests/fetchers/test_content.py

View File

@@ -9,6 +9,7 @@ import getopt
import os
import signal
import sys
import socket
from . import store, changedetection_app, content_fetcher
from . import __version__
@@ -126,11 +127,11 @@ def main():
if ssl_mode:
# @todo finalise SSL config, but this should get you in the right direction if you need it.
eventlet.wsgi.server(eventlet.wrap_ssl(eventlet.listen((host, port)),
eventlet.wsgi.server(eventlet.wrap_ssl(eventlet.listen((host, port), socket.AF_INET6),
certfile='cert.pem',
keyfile='privkey.pem',
server_side=True), app)
else:
eventlet.wsgi.server(eventlet.listen((host, int(port))), app)
eventlet.wsgi.server(eventlet.listen((host, int(port)), socket.AF_INET6), app)