public void UpdatePACURL(EndPoint localEndPoint) { string usedSecret = _PACServerEnableSecret ? $"&secret={PacSecret}" : ""; string contentHash = GetHash(_pacDaemon.GetPACContent()); PacUrl = $"http://{localEndPoint}/{RESOURCE_NAME}?hash={contentHash}{usedSecret}"; this.Log().Debug("Setting PAC URL: {PacUrl}"); }
public void UpdatePACURL(Configuration config) { _config = config; string usedSecret = _config.secureLocalPac ? $"&secret={PacSecret}" : ""; string contentHash = GetHash(_pacDaemon.GetPACContent()); PacUrl = $"http://{config.LocalHost}:{config.localPort}/{RESOURCE_NAME}?hash={contentHash}{usedSecret}"; logger.Debug("Set PAC URL:" + PacUrl); }