Changeset 11153 in ntrip for trunk/BNC/src/upload


Ignore:
Timestamp:
Oct 31, 2026, 11:50:15 PM (2 days ago)
Author:
stuerze
Message:

Credentials files are implemented, with existing configs keep working unchanged

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/upload/bncuploadcaster.cpp

    r11128 r11153  
    2222#include "bncsettings.h"
    2323#include "bncsslconfig.h"
     24#include "bnccredentials.h"
    2425
    2526using namespace std;
    … …  
    4647  _userName = userName;
    4748  _password = password;
     49  if (!_mountpoint.isEmpty() && !_casterOutHost.isEmpty()) {
     50    // empty password: from a credentials file, also without user (Ntrip Version 1)
     51    bncCredentials::complete(_casterOutHost, _casterOutPort, _userName, _password, true, true);
     52  }
    4853  _outSocket = 0;
    4954  _sOpenTrial = 0;
Note: See TracChangeset for help on using the changeset viewer.