Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add localhost_ip config arg #53

Merged
merged 1 commit into from
Nov 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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