| Server IP : 123.56.80.60 / Your IP : 216.73.216.78 Web Server : Apache/2.4.54 (Win32) OpenSSL/1.1.1s PHP/7.4.33 mod_fcgid/2.3.10-dev System : Windows NT iZhx3sob14hnz7Z 10.0 build 14393 (Windows Server 2016) i586 User : SYSTEM ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Windows/SystemApps/Microsoft.Windows.Cortana_cw5n1h2txyewy/dss_service/node_modules/dss/lib/ |
Upload File : |
function DssServer(n){if(!(this instanceof DssServer))return new DssServer(n);http.Server.call(this,n)}function invokeHostAndPortCb(){hostAndPortCB&&dssServerData&&(hostAndPortCB(dssServerData.host,dssServerData.port),hostAndPortCB=undefined,dssServerData.server.emit("dss:listening"))}var http=require("http"),util=require("util"),cortanaPlat=require("cortana-platform"),tag="dss.js",DEFAULT_HOST="[::1]",hostAndPortCB,dssServerData;if(util.inherits(DssServer,http.Server),exports.Server=DssServer,exports.createServer=function(n){return new DssServer(n)},DssServer.prototype.startListening=function(){var t=this,n=0,i=DEFAULT_HOST;return cortanaPlat.settings.isValueExists("Proactive","DssFiddlerDebugPort")&&(n=parseInt(cortanaPlat.settings.getStringValue("Proactive","DssFiddlerDebugPort")),isNaN(n)?(console.warn("%s: invalid fiddler debug port string, falling back to using a random port",tag),n=0):n!=0&&(i=undefined)),console.log("%s: begin accepting connections on %s and %s",tag,i?"hostname":"directed to any IP address",n?"port "+n:"a random port"),t.listen(n,i,function(){console.log("%s: server listening for incoming requests. Host: %s, listening on port: %d",tag,i,t.address().port);dssServerData={host:i,port:t.address().port,server:t};invokeHostAndPortCb()}),t},externalEvents&&externalEvents.on)externalEvents.on("dss:query_host_and_port",function(n){return hostAndPortCB=n,invokeHostAndPortCb()})