File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -255,13 +255,13 @@ export class KubeConfig implements SecurityAuthentication {
255255 if ( cluster && cluster . proxyUrl ) {
256256 if ( cluster . proxyUrl . startsWith ( 'socks' ) ) {
257257 agent = new SocksProxyAgent ( cluster . proxyUrl , agentOptions ) ;
258- } else if ( cluster . proxyUrl . startsWith ( 'http' ) ) {
259- agent = new HttpsProxyAgent ( {
258+ } else if ( cluster . server . startsWith ( 'http' ) ) {
259+ agent = new HttpProxyAgent ( {
260260 proxy : cluster . proxyUrl ,
261261 ...agentOptions ,
262262 } ) ;
263- } else if ( cluster . proxyUrl . startsWith ( 'https' ) ) {
264- agent = new HttpProxyAgent ( {
263+ } else if ( cluster . server . startsWith ( 'https' ) ) {
264+ agent = new HttpsProxyAgent ( {
265265 proxy : cluster . proxyUrl ,
266266 ...agentOptions ,
267267 } ) ;
You can’t perform that action at this time.
0 commit comments