df361ab24277df4e072450e257f97204b588bd58 — Cadence Ember 6 months ago 9221f0c
Try to detect LAN IP
1 files changed, 5 insertions(+), 1 deletions(-)

M install.fish
M install.fish => install.fish +5 -1
@@ 69,7 69,11 @@ if y_or_n

	echo 'What URL will people visit to access your instance?'
	echo '(example: https://bibliogram.art)'
	echo '(example for public internet: https://bibliogram.art)'
	set ip (ifconfig eth0 2>/dev/null | grep 'inet ' | awk '{print $2}')
	if test (count $ip) -eq 1
		echo "(example for your LAN: http://$ip:10407)"
	set s_website_origin (get_input_matching 'https?://.+')