Skip to content

Commit 23426c4

Browse files
authored
Disable workaround for old version of udx
1 parent 054d86f commit 23426c4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

hypergate-cli.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Gateway from "./Gateway.js";
44
import Utils from "./Utils.js";
55
import Minimist from 'minimist';
66
import Fs from 'fs';
7-
import UDXBinding from "udx-native/lib/binding.js";
7+
// import UDXBinding from "udx-native/lib/binding.js";
88

99
function prepareLogger(tag, debug) {
1010
const _console_log = console.log;
@@ -28,11 +28,11 @@ function prepareLogger(tag, debug) {
2828
}
2929

3030
function disableIPv6(argv) {
31-
const _udx_napi_socket_bind = UDXBinding.udx_napi_socket_bind;
32-
UDXBinding.udx_napi_socket_bind = function (...args) {
33-
if (args[3] == 6) throw "IPv6 is disabled"
34-
return _udx_napi_socket_bind(...args);
35-
}
31+
// const _udx_napi_socket_bind = UDXBinding.udx_napi_socket_bind;
32+
// UDXBinding.udx_napi_socket_bind = function (...args) {
33+
// if (args[3] == 6) throw "IPv6 is disabled"
34+
// return _udx_napi_socket_bind(...args);
35+
// }
3636
}
3737

3838

@@ -159,4 +159,4 @@ if (argv.help) {
159159
} else {
160160
help();
161161
}
162-
}
162+
}

0 commit comments

Comments
 (0)