diff --git a/cmd/loopd/daemon.go b/cmd/loopd/daemon.go index 5d8060a..371e548 100644 --- a/cmd/loopd/daemon.go +++ b/cmd/loopd/daemon.go @@ -26,9 +26,10 @@ func daemon(config *config) error { } defer lnd.Close() - // If the user is targeting the testnet network, then we'll point - // towards the testnet swap server rather than the mainnet endpoint. - if config.Network == "testnet" { + // If the user is targeting the testnet network, and they haven't + // specified new swap server, then we'll point towards the testnet swap + // server rather than the mainnet endpoint. + if config.Network == "testnet" && config.SwapServer == "" { config.SwapServer = testnetServer }