Skip to content

Commit

Permalink
add ip option
Browse files Browse the repository at this point in the history
  • Loading branch information
fitztrev committed Nov 27, 2023
1 parent 5a274ec commit 9ef2f65
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion command/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -419,10 +419,15 @@ fn hostname() -> std::io::Result<()> {
let hostname: String = match select("Select a hostname to access your local Lichess instance:")
.initial_value("localhost")
.item("localhost", "localhost", "default")
.item(
"10.0.2.2",
"10.0.2.2",
"For accessing from an Android emulator running on this machine",
)
.item(
local_ip.as_str(),
local_ip.as_str(),
"Your private IP address",
"Your private IP address, for accessing from other devices on your local network",
)
.item("other", "Other", "Enter a custom hostname")
.interact()?
Expand Down

0 comments on commit 9ef2f65

Please sign in to comment.