mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-19 11:09:42 +00:00
Remove tunneling from mongoose
CL: Mongoose Web Server: Remove tunneling functionality which was used by nobody PUBLISHED_FROM=38b9e8ae7b0a5a1dbba5cff4074843dc681267d3
This commit is contained in:
1 parent
8742fac5d8
commit
f29457e967
14 files changed
+16
-1309
No files matched your search
@@ -20,7 +20,6 @@
|
||||
#include "mongoose/src/dns.h"
|
||||
#include "mongoose/src/internal.h"
|
||||
#include "mongoose/src/resolv.h"
|
||||
#include "mongoose/src/tun.h"
|
||||
#include "mongoose/src/util.h"
|
||||
|
||||
#define MG_MAX_HOST_LEN 200
|
||||
@@ -816,13 +815,6 @@ struct mg_connection *mg_bind_opt(struct mg_mgr *mgr, const char *address,
|
||||
|
||||
MG_COPY_COMMON_CONNECTION_OPTIONS(&add_sock_opts, &opts);
|
||||
|
||||
#if MG_ENABLE_TUN
|
||||
if (mg_strncmp(mg_mk_str(address), mg_mk_str("ws://"), 5) == 0 ||
|
||||
mg_strncmp(mg_mk_str(address), mg_mk_str("wss://"), 6) == 0) {
|
||||
return mg_tun_bind_opt(mgr, address, MG_CB(callback, user_data), opts);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (mg_parse_address(address, &sa, &proto, host, sizeof(host)) <= 0) {
|
||||
MG_SET_PTRPTR(opts.error_string, "cannot parse address");
|
||||
return NULL;
|
||||
|
||||
Reference in new issue
Block a user