mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 20:47:08 +03:00
UI input for dhcp host name
This commit is contained in:
@@ -440,6 +440,7 @@ function performConnect(conntype){
|
||||
stopRefreshAPInterval();
|
||||
|
||||
var pwd;
|
||||
var dhcp-name $("#dhcp-name").val();;
|
||||
if (conntype == 'manual') {
|
||||
//Grab the manual SSID and PWD
|
||||
selectedSSID=$('#manual_ssid').val();
|
||||
@@ -463,7 +464,7 @@ function performConnect(conntype){
|
||||
dataType: 'json',
|
||||
method: 'POST',
|
||||
cache: false,
|
||||
headers: { 'X-Custom-ssid': selectedSSID, 'X-Custom-pwd': pwd },
|
||||
headers: { 'X-Custom-ssid': selectedSSID, 'X-Custom-pwd': pwd, 'X-Custom-host_name': dhcp-name },
|
||||
data: { 'timestamp': Date.now()},
|
||||
error: function (xhr, ajaxOptions, thrownError) {
|
||||
console.log(xhr.status);
|
||||
|
||||
Reference in New Issue
Block a user