File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ const myIpServer = (CallBack) => {
116
116
let ret = false ;
117
117
Async . each ( myIpServerUrl , ( n , next ) => {
118
118
doUrl ( n , ( err , data ) => {
119
- if ( err ) {
119
+ if ( err || ! Net . isIPv4 ( data ) ) {
120
120
return next ( ) ;
121
121
}
122
122
if ( ! ret ) {
@@ -125,7 +125,7 @@ const myIpServer = (CallBack) => {
125
125
}
126
126
} ) ;
127
127
} , ( ) => {
128
- return CallBack ( new Error ( '' ) ) ;
128
+ return CallBack ( new Error ( 'no IP ' ) ) ;
129
129
} ) ;
130
130
} ;
131
131
const getQTGateSign = ( _key ) => {
Original file line number Diff line number Diff line change @@ -131,16 +131,16 @@ const myIpServer = ( CallBack ) => {
131
131
let ret = false
132
132
Async . each ( myIpServerUrl , ( n , next ) => {
133
133
doUrl ( n , ( err , data ) => {
134
- if ( err ) {
134
+ if ( err || ! Net . isIPv4 ( data ) ) {
135
135
return next ( )
136
136
}
137
- if ( ! ret ) {
137
+ if ( ! ret ) {
138
138
ret = true
139
139
return CallBack ( null , data )
140
140
}
141
141
} )
142
142
} , ( ) => {
143
- return CallBack ( new Error ( '' ) )
143
+ return CallBack ( new Error ( 'no IP ' ) )
144
144
} )
145
145
}
146
146
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " qtgate" ,
3
- "version" : " 0.8.54 " ,
3
+ "version" : " 0.8.55 " ,
4
4
"license" : " MIT" ,
5
5
"description" : " QTGate desktop client" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments