Project

General

Profile

Error #468

Community name is not saved in ¿Natted? mode

Added by Roger Pueyo Centelles about 1 year ago. Updated about 1 year ago.

Status:
Tancat
Priority:
Baixa
Category:
WEB interface
Target version:
Start date:
10/10/2018
Due date:
% Done:

100%

Estimated time:
2.00 h
Spent time:

Associated revisions

Revision 292f114d (diff)
Added by Roger Pueyo Centelles about 1 year ago

[qmp-system] Save community_name for all communities

The community_name option would only be saved if it wasn't set to "Guifi.net";
now it saves any community.

Fixes #468

Signed-off-by: Roger Pueyo Centelles <>

History

#1 Updated by Roger Pueyo Centelles about 1 year ago

  • Status changed from Nou to Resolt
  • % Done changed from 0 to 100

With the previous code:

  local community_name = communityname:formvalue(section)
  if community_name == "Guifi.net" then
    local mesh_name = guifimeshname:formvalue(section)
    local device_id = guifideviceid:formvalue(section)
    uciout:set("qmp","node","mesh_name",mesh_name)
    uciout:set("qmp","node","device_id",device_id)
  else
    uciout:set("qmp","node","community_name",community_name)
  end

"community_name" would only be saved in easy setup when it was not set to Guifi.net

#2 Updated by Roger Pueyo Centelles about 1 year ago

  • Status changed from Resolt to Tancat

Also available in: Atom PDF