Use local IP address for Caravan suggestion

This commit is contained in:
Taylor Helsper 2020-06-16 23:15:53 -05:00
parent 64d7ecc732
commit 8dc3be155e
2 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,7 @@
from flask import Blueprint, render_template, redirect from flask import Blueprint, render_template, redirect
from settings import read_ui_settings from settings import read_ui_settings
from user_management import check_logged_in from user_management import check_logged_in
from device_info import *
import subprocess import subprocess
import re import re
import os import os
@ -17,6 +18,7 @@ def caravan_page():
# Load page # Load page
templateData = { templateData = {
"title": "myNode Caravan", "title": "myNode Caravan",
"local_ip": get_local_ip(),
"ui_settings": read_ui_settings() "ui_settings": read_ui_settings()
} }
return render_template('caravan.html', **templateData) return render_template('caravan.html', **templateData)

View File

@ -49,7 +49,7 @@
<li>Change the Public/Private option to Private</li> <li>Change the Public/Private option to Private</li>
<li>Change the URL to your node's IP address hostname with port 8334. For example:</li> <li>Change the URL to your node's IP address hostname with port 8334. For example:</li>
<ul> <ul>
<li>https://192.168.1.101:8334</li> <li>https://{{local_ip}}:8334</li>
<li>https://mynode.local:8334</li> <li>https://mynode.local:8334</li>
</ul> </ul>
<li>Change the Username to "mynode"</li> <li>Change the Username to "mynode"</li>