Skip to content

Commit

Permalink
Merge pull request #53 from nickfarrow/localhost-conf
Browse files Browse the repository at this point in the history
Add localhost_ip config arg
  • Loading branch information
DanGould authored Nov 8, 2022
2 parents 99d6111 + 8930d8f commit f01b22e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions config_spec.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ Lightning Optimizing Opening Server
This server optimizes your channel opening from a remote wallet which supports PayJoin. It enables you to open one or more channels in a single transaction from remote LND with empty wallet using sats in PayJoin-compliant wallet. This way you save one chain transaction when opening from e.g. Wasabi, Blue Wallet, BTCPayServer, or other PayJoin-supporting wallet. It's basically a user-friendly way to do PSBT funding flow.
"""

[[param]]
name = "bind_ip"
type = "std::net::Ipv4Addr"
doc = "The interface from which this server should listen (usually 127.0.0.1 or 0.0.0.0 in the case of docker)"
default = "std::net::Ipv4Addr::new(127, 0, 0, 1)"

[[param]]
name = "bind_port"
type = "u16"
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
);
}

let bind_addr = ([127, 0, 0, 1], config.bind_port).into();
let bind_addr = (config.bind_ip, config.bind_port).into();
http::serve(scheduler, bind_addr, secure_endpoint).await?;

Ok(())
Expand Down

0 comments on commit f01b22e

Please sign in to comment.