File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import Gateway from "./Gateway.js";
4
4
import Utils from "./Utils.js" ;
5
5
import Minimist from 'minimist' ;
6
6
import Fs from 'fs' ;
7
- import UDXBinding from "udx-native/lib/binding.js" ;
7
+ // import UDXBinding from "udx-native/lib/binding.js";
8
8
9
9
function prepareLogger ( tag , debug ) {
10
10
const _console_log = console . log ;
@@ -28,11 +28,11 @@ function prepareLogger(tag, debug) {
28
28
}
29
29
30
30
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
+ // }
36
36
}
37
37
38
38
@@ -159,4 +159,4 @@ if (argv.help) {
159
159
} else {
160
160
help ( ) ;
161
161
}
162
- }
162
+ }
You can’t perform that action at this time.
0 commit comments