diff --git a/src/utils/surfboard.ts b/src/utils/surfboard.ts
index 480d39c3e..b706df30e 100644
--- a/src/utils/surfboard.ts
+++ b/src/utils/surfboard.ts
@@ -89,8 +89,8 @@ function nodeListMapper(
             'https',
             nodeConfig.hostname,
             nodeConfig.port,
-            nodeConfig.username,
-            nodeConfig.password,
+            nodeConfig.username /* istanbul ignore next */ || '',
+            nodeConfig.password /* istanbul ignore next */ || '',
             ...(typeof nodeConfig.skipCertVerify === 'boolean'
               ? [`skip-cert-verify=${nodeConfig.skipCertVerify}`]
               : []),
@@ -109,8 +109,8 @@ function nodeListMapper(
             'http',
             nodeConfig.hostname,
             nodeConfig.port,
-            nodeConfig.username,
-            nodeConfig.password,
+            nodeConfig.username /* istanbul ignore next */ || '',
+            nodeConfig.password /* istanbul ignore next */ || '',
           ].join(', '),
         ].join(' = '),
       ]
diff --git a/src/utils/surge.ts b/src/utils/surge.ts
index 2aec047d3..440b3e4d4 100644
--- a/src/utils/surge.ts
+++ b/src/utils/surge.ts
@@ -186,8 +186,8 @@ function nodeListMapper(
             'https',
             nodeConfig.hostname,
             nodeConfig.port,
-            nodeConfig.username,
-            nodeConfig.password,
+            nodeConfig.username /* istanbul ignore next */ || '',
+            nodeConfig.password /* istanbul ignore next */ || '',
           ].join(', '),
         ].join(' = '),
       ]
@@ -202,8 +202,8 @@ function nodeListMapper(
             'http',
             nodeConfig.hostname,
             nodeConfig.port,
-            nodeConfig.username,
-            nodeConfig.password,
+            nodeConfig.username /* istanbul ignore next */ || '',
+            nodeConfig.password /* istanbul ignore next */ || '',
           ].join(', '),
         ].join(' = '),
       ]