Fixed nginx conf issue

This commit is contained in:
2024-08-07 21:34:03 -04:00
parent 58964b60dc
commit f44284685f
5 changed files with 20 additions and 23 deletions
+4 -1
View File
@@ -9,7 +9,10 @@ const socket = new SocketServerJson({
socketFile: conf.socketFile,
onData: function(data, clientSocket) {
try{
let parentHost = Host.lookUp(data['domain']) || {host: 'none'};
console.log('socket lookup', data)
let parentHost = Host.lookUp(data['domain']);
console.log('socket found host', parentHost);
if(!parentHost) return clientSocket.write(JSON.stringify({}));
if(!parentHost.wildcard_parent){
parentHost.wildcard_parent = parentHost.host;
Host.addCache(data['domain'], parentHost);