Skip to content

Commit

Permalink
fix: proxy protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
zdm committed Jan 2, 2024
1 parent 762ab0a commit aaf57d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/app/components/nginx/nginx/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default class NginxProxy {
var counter = new Counter(),
hasHttpServers,
hasStreamServers,
serverNames = new Set();
serverNames = new Map();

for ( const server of this.#servers.values() ) {
if ( server.isHttp ) {
Expand All @@ -88,7 +88,7 @@ export default class NginxProxy {
else {
hasStreamServers = true;

if ( server.port === 443 ) server.serverName.forEach( serverName => serverNames.add( serverName ) );
if ( server.port === 443 ) server.serverName.forEach( serverName => serverNames.set( serverName, server.socketPath ) );
}

counter.value++;
Expand Down

0 comments on commit aaf57d3

Please sign in to comment.