feat: default to GreyHaven proxy and DNS infrastructure
Default proxy to socks5://localhost:42052 and DNS to localhost:42053 when neither CLI flags nor config file specify them. This makes greywall work out of the box with GreyHaven without requiring --proxy or --dns. Also show both proxy and DNS in debug output on manager initialization.
This commit is contained in:
@@ -120,7 +120,11 @@ func (m *Manager) Initialize() error {
|
||||
|
||||
m.initialized = true
|
||||
if m.config.Network.ProxyURL != "" {
|
||||
m.logDebug("Sandbox manager initialized (proxy: %s)", m.config.Network.ProxyURL)
|
||||
dnsInfo := "none"
|
||||
if m.config.Network.DnsAddr != "" {
|
||||
dnsInfo = m.config.Network.DnsAddr
|
||||
}
|
||||
m.logDebug("Sandbox manager initialized (proxy: %s, dns: %s)", m.config.Network.ProxyURL, dnsInfo)
|
||||
} else {
|
||||
m.logDebug("Sandbox manager initialized (no proxy, network blocked)")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user