Changeset 6777 in ntrip for trunk/BNC/src/bncrinex.cpp


Ignore:
Timestamp:
Apr 17, 2015, 10:45:26 AM (9 years ago)
Author:
stuerze
Message:

switch to port 443 for skeleton file download if https is used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncrinex.cpp

    r6448 r6777  
    128128  }
    129129  QString sklDir;
     130
    130131  if (!net.isEmpty()) {
    131132    it.toFront();
     
    146147    QUrl url(sklDir + "/" + _mountPoint.path().mid(1,4).toLower() + ".skl");
    147148    if (url.port() == -1) {
    148       url.setPort(80);
     149      if (sklDir.contains("https")) {
     150        url.setPort(443);
     151      }
     152      else {
     153        url.setPort(80);
     154      }
    149155    }
    150156
     
    162168    QByteArray outData;
    163169    query->waitForRequestResult(url, outData);
     170
    164171    if (query->status() == bncNetQuery::finished) {
    165172      irc = success;
Note: See TracChangeset for help on using the changeset viewer.