Skip to content

Commit 9ef2f65

Browse files
committed
add ip option
1 parent 5a274ec commit 9ef2f65

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

command/src/main.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,10 +419,15 @@ fn hostname() -> std::io::Result<()> {
419419
let hostname: String = match select("Select a hostname to access your local Lichess instance:")
420420
.initial_value("localhost")
421421
.item("localhost", "localhost", "default")
422+
.item(
423+
"10.0.2.2",
424+
"10.0.2.2",
425+
"For accessing from an Android emulator running on this machine",
426+
)
422427
.item(
423428
local_ip.as_str(),
424429
local_ip.as_str(),
425-
"Your private IP address",
430+
"Your private IP address, for accessing from other devices on your local network",
426431
)
427432
.item("other", "Other", "Enter a custom hostname")
428433
.interact()?

0 commit comments

Comments
 (0)