mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-03-26 21:42:48 +01:00
Fix error parsing address in AcceptOfferDialog (#3491)
This commit is contained in:
parent
e315fb0563
commit
66813dc7c5
1 changed files with 3 additions and 8 deletions
|
@ -13,7 +13,6 @@ import scalafx.scene.control._
|
|||
import scalafx.scene.layout._
|
||||
import scalafx.stage.Window
|
||||
|
||||
import java.net.{InetSocketAddress, URI}
|
||||
import scala.collection._
|
||||
import scala.util.{Failure, Success, Try}
|
||||
|
||||
|
@ -23,14 +22,10 @@ class AcceptOfferDialog extends CliCommandProducer[AcceptDLCCliCommand] {
|
|||
val offerHex = offerTLVTF.text.value
|
||||
val offer = LnMessageFactory(DLCOfferTLV).fromHex(offerHex)
|
||||
if (peerAddressTF.text.value.nonEmpty) {
|
||||
val peer = new URI(
|
||||
"tcp://" + NetworkUtil.parseInetSocketAddress(peerAddressTF.text.value,
|
||||
2862))
|
||||
val peer =
|
||||
NetworkUtil.parseInetSocketAddress(peerAddressTF.text.value, 2862)
|
||||
|
||||
val peerAddr =
|
||||
InetSocketAddress.createUnresolved(peer.getHost, peer.getPort)
|
||||
|
||||
AcceptDLC(offer, peerAddr)
|
||||
AcceptDLC(offer, peer)
|
||||
} else {
|
||||
AcceptDLCOffer(offer)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue