You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log('Did not provide a port number within the target URL.\n');
68
-
program.outputHelp();
69
-
process.exit();
70
-
}
63
+
constdefaultPorts: {[key: string]: number}={
64
+
'http:': 80,
65
+
'https:': 443
71
66
}
72
-
if(program.target.startsWith('https://')){
73
-
console.log('HTTPS is not supported. Not possible to modify requests/responses when the channel is encrypted. Consider to use openapi-cop behind a SSL proxy.\n');
74
-
process.exit();
75
-
}
76
-
if(
77
-
program.target.indexOf('//localhost')!==-1&&
78
-
program.target.indexOf('//0.0.0.0')!==-1&&
79
-
program.port===Number(targetPort)
80
-
){
81
-
console.log('Cannot proxy locally to the same port!');
0 commit comments