Skip to content

Commit

Permalink
fix: getPortByScheme tweak (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
rentallect authored Feb 9, 2024
1 parent 9c7226e commit 4037a6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/context/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -1240,6 +1240,7 @@ class ZitiContext extends EventEmitter {
return true;
} else {
dst_port = portRange.low;
return true;
}
}
if (isEqual( scheme, 'http' )) {
Expand All @@ -1250,6 +1251,9 @@ class ZitiContext extends EventEmitter {
else if (!isEqual( portRange.high, 443 )) {
dst_port = portRange.high;
return true;
} else {
dst_port = 443;
return true;
}
}
});
Expand Down

0 comments on commit 4037a6f

Please sign in to comment.