From 8dc3be155e556e38212bf7014e7aff2e9a20a123 Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Tue, 16 Jun 2020 23:15:53 -0500 Subject: [PATCH] Use local IP address for Caravan suggestion --- rootfs/standard/var/www/mynode/caravan.py | 2 ++ rootfs/standard/var/www/mynode/templates/caravan.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/rootfs/standard/var/www/mynode/caravan.py b/rootfs/standard/var/www/mynode/caravan.py index b3ce7431..69f0e0f7 100644 --- a/rootfs/standard/var/www/mynode/caravan.py +++ b/rootfs/standard/var/www/mynode/caravan.py @@ -2,6 +2,7 @@ from flask import Blueprint, render_template, redirect from settings import read_ui_settings from user_management import check_logged_in +from device_info import * import subprocess import re import os @@ -17,6 +18,7 @@ def caravan_page(): # Load page templateData = { "title": "myNode Caravan", + "local_ip": get_local_ip(), "ui_settings": read_ui_settings() } return render_template('caravan.html', **templateData) diff --git a/rootfs/standard/var/www/mynode/templates/caravan.html b/rootfs/standard/var/www/mynode/templates/caravan.html index 21fba1f8..90fb50f6 100644 --- a/rootfs/standard/var/www/mynode/templates/caravan.html +++ b/rootfs/standard/var/www/mynode/templates/caravan.html @@ -49,7 +49,7 @@
  • Change the Public/Private option to Private
  • Change the URL to your node's IP address hostname with port 8334. For example:
  • Change the Username to "mynode"