mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
cmd/loopd: only replace testnet swapserver if not already set
This commit is contained in:
parent
893954e69b
commit
f1f72bb2d1
1 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue