From 49076237cc0b82e7007535e789f3fadc19a18c45 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 3 Nov 2024 10:12:28 -0800 Subject: Remove NNI_TYPE_OPAQUE altogether. This also fixes a couple of minor bugs -- changing the socket name could be incorrect as the termination was not applied properly, and the ZeroTier code got a change -- note that it is only possible in this revised version to pass a single moon ID for ZT orbit. The ZT code is a bit stale, and untested anyway. --- src/supplemental/websocket/websocket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/supplemental') diff --git a/src/supplemental/websocket/websocket.c b/src/supplemental/websocket/websocket.c index ce733c84..b215c1da 100644 --- a/src/supplemental/websocket/websocket.c +++ b/src/supplemental/websocket/websocket.c @@ -186,7 +186,7 @@ static void ws_listener_free(void *); static int ws_check_string(const void *v, size_t sz, nni_opt_type t) { - if ((t != NNI_TYPE_OPAQUE) && (t != NNI_TYPE_STRING)) { + if (t != NNI_TYPE_STRING) { return (NNG_EBADTYPE); } if (nni_strnlen(v, sz) >= sz) { -- cgit v1.2.3-70-g09d2