Fix aprs path

This commit is contained in:
Atten 2022-06-10 12:39:28 +07:00
parent 974773c59d
commit e47dc068eb
3 changed files with 5 additions and 5 deletions

View File

@ -10,7 +10,7 @@
#ifndef MAIN_H
#define MAIN_H
#define VERSION "0.7a"
#define VERSION "0.7b"
#define DEBUG
//#define DEBUG_IS

View File

@ -227,9 +227,9 @@ void defaultConfig()
config.modem = false;
config.wg_port = 51820;
sprintf(config.wg_peer_address, "203.150.19.23");
sprintf(config.wg_local_address, "192.168.44.200");
sprintf(config.wg_local_address, "44.63.31.223");
sprintf(config.wg_netmask_address, "255.255.255.255");
sprintf(config.wg_gw_address, "192.168.44.254");
sprintf(config.wg_gw_address, "44.63.31.193");
sprintf(config.wg_public_key, "");
sprintf(config.wg_private_key, "");
config.timeZone = 7;

View File

@ -530,7 +530,7 @@ void handle_setting()
{
if (server.arg(i) != "")
{
strcpy(config.tnc_path, server.arg(i).c_str());
strcpy(config.aprs_path, server.arg(i).c_str());
}
}
@ -595,7 +595,7 @@ void handle_setting()
webString += "<div class=\"form-group\">\n";
webString += "<label class=\"col-sm-4 col-xs-12 control-label\">APRS Path</label>\n";
webString += "<div class=\"col-sm-6 col-xs-8\"><input class=\"form-control\" id=\"aprsPath\" name=\"aprsPath\" type=\"text\" value=\"" + String(config.tnc_path) + "\" /></div>\n";
webString += "<div class=\"col-sm-6 col-xs-8\"><input class=\"form-control\" id=\"aprsPath\" name=\"aprsPath\" type=\"text\" value=\"" + String(config.aprs_path) + "\" /></div>\n";
webString += "</div>\n";
webString += "<div class=\"form-group\">\n";