Skip to content

Commit f1f72bb

Browse files
committed
cmd/loopd: only replace testnet swapserver if not already set
1 parent 893954e commit f1f72bb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cmd/loopd/daemon.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ func daemon(config *config) error {
2626
}
2727
defer lnd.Close()
2828

29-
// If the user is targeting the testnet network, then we'll point
30-
// towards the testnet swap server rather than the mainnet endpoint.
31-
if config.Network == "testnet" {
29+
// If the user is targeting the testnet network, and they haven't
30+
// specified new swap server, then we'll point towards the testnet swap
31+
// server rather than the mainnet endpoint.
32+
if config.Network == "testnet" && config.SwapServer == "" {
3233
config.SwapServer = testnetServer
3334
}
3435

0 commit comments

Comments
 (0)