Changeset 4d29bfe for apps


Ignore:
Timestamp:
May 30, 2019 11:39:42 AM (10 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
652c3d5
Parents:
16ac93c
Message:

i2ptunnel: Fix double-b64 of default client name
Add new default client if all are revoked

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/ui/TunnelConfig.java

    r16ac93c r4d29bfe  
    943943                    _addClientAuth = true;
    944944                    if (_newClientName == null || _newClientName.length() == 0)
    945                         _newClientName = Base64.encode(DataHelper.getUTF8(GeneralHelper._t("Client", _context) + " 1"));
     945                        _newClientName = GeneralHelper._t("Client", _context) + " 1";
    946946                }
    947947            }
     
    962962                        name = Base64.encode(DataHelper.getUTF8(GeneralHelper._t("Client", _context) + ' ' + (i + 1)));
    963963                    clientAuth.add(name + ':' + key);
     964                }
     965                if (clientAuth.isEmpty() && !_addClientAuth) {
     966                    // if we revoked all of them, add a new one
     967                    _addClientAuth = true;
     968                    _newClientName = GeneralHelper._t("Client", _context) + " 1";
    964969                }
    965970            }
Note: See TracChangeset for help on using the changeset viewer.