···7676 be disconnected on registration
77777878### misc
7979+- **Breaking:** WebSocket support has been removed.
7980- **Breaking:** WEBIRC now processes the "secure" option as specified by IRCv3. Web gateways that
8081 do not set this option will need to be updated or their connections will show as insecure.
8182- Successfully changing IP with WEBIRC now drops an identd username
···160160 #host = "2001:db8:2::6";
161161 #port = 5000, 6665 .. 6669;
162162 #sslport = 6697;
163163-164164- /* wsock: listeners defined with this option enabled will be websocket listeners,
165165- * and will not accept normal clients.
166166- */
167167- wsock = yes;
168168- sslport = 9999;
169163};
170164171165/* auth {}: allow users to connect to the ircd (OLD I:)
-6
doc/reference.conf
···336336 host = "2001:db8:2::6";
337337 port = 7002;
338338 sslport = 9002;
339339-340340- /* wsock: listeners defined with this option enabled will be websocket listeners,
341341- * and will not accept normal clients.
342342- */
343343- wsock = yes;
344344- sslport = 9999;
345339};
346340347341/* auth {}: allow users to connect to the ircd (OLD I:) */
-2
include/client.h
···6262struct PreClient;
6363struct ListClient;
6464struct scache_entry;
6565-struct ws_ctl;
66656766typedef int SSL_OPEN_CB(struct Client *, int status);
6867···264263265264 struct _ssl_ctl *ssl_ctl; /* which ssl daemon we're associate with */
266265 struct _ssl_ctl *z_ctl; /* second ctl for ssl+zlib */
267267- struct ws_ctl *ws_ctl; /* ctl for wsockd */
268266 SSL_OPEN_CB *ssl_callback; /* ssl connection is now open */
269267 uint32_t localflags;
270268 uint16_t cork_count; /* used for corking/uncorking connections */
+2-3
include/listener.h
···3939 int ssl; /* ssl listener */
4040 int defer_accept; /* use TCP_DEFER_ACCEPT */
4141 bool sctp; /* use SCTP */
4242- int wsock; /* wsock listener */
4342 struct rb_sockaddr_storage addr[2];
4443 char vhost[(HOSTLEN * 2) + 1]; /* virtual name of listener */
4544};
46454747-extern void add_tcp_listener(int port, const char *vaddr_ip, int family, int ssl, int defer_accept, int wsock);
4848-extern void add_sctp_listener(int port, const char *vaddr_ip1, const char *vaddr_ip2, int ssl, int wsock);
4646+extern void add_tcp_listener(int port, const char *vaddr_ip, int family, int ssl, int defer_accept);
4747+extern void add_sctp_listener(int port, const char *vaddr_ip1, const char *vaddr_ip2, int ssl);
4948extern void close_listener(struct Listener *listener);
5049extern void close_listeners(void);
5150extern const char *get_listener_name(const struct Listener *listener);
···11-/*
22- * wsproc.h: An interface to the solanum websocket helper daemon
33- * Copyright (C) 2007 Aaron Sethman <androsyn@ratbox.org>
44- * Copyright (C) 2007 ircd-ratbox development team
55- * Copyright (C) 2016 Ariadne Conill <ariadne@dereferenced.org>
66- *
77- * This program is free software; you can redistribute it and/or modify
88- * it under the terms of the GNU General Public License as published by
99- * the Free Software Foundation; either version 2 of the License, or
1010- * (at your option) any later version.
1111- *
1212- * This program is distributed in the hope that it will be useful,
1313- * but WITHOUT ANY WARRANTY; without even the implied warranty of
1414- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1515- * GNU General Public License for more details.
1616- *
1717- * You should have received a copy of the GNU General Public License
1818- * along with this program; if not, write to the Free Software
1919- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
2020- * USA
2121- */
2222-2323-#ifndef INCLUDED_wsproc_h
2424-#define INCLUDED_wsproc_h
2525-2626-struct ws_ctl;
2727-typedef struct ws_ctl ws_ctl_t;
2828-2929-enum wsockd_status {
3030- WSOCKD_ACTIVE,
3131- WSOCKD_SHUTDOWN,
3232- WSOCKD_DEAD,
3333-};
3434-3535-void init_wsockd(void);
3636-void restart_wsockd(void);
3737-int start_wsockd(int count);
3838-ws_ctl_t *start_wsockd_accept(rb_fde_t *wsF, rb_fde_t *plainF, uint32_t id);
3939-void wsockd_decrement_clicount(ws_ctl_t *ctl);
4040-int get_wsockd_count(void);
4141-void wsockd_foreach_info(void (*func)(void *data, pid_t pid, int cli_count, enum wsockd_status status), void *data);
4242-4343-#endif
4444-