Changeset 2973

Show
Ignore:
Timestamp:
08/16/08 11:30:13 (3 months ago)
Author:
borkdomenik
Message:

bugfix on HidServAuth? with more than one service!

Location:
vidalia/branches/hidden-services/src/vidalia/config
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • vidalia/branches/hidden-services/src/vidalia/config/servicepage.ui

    r2972 r2973  
    531531          <widget class="QToolButton" name="copyServiceAuthBtn" > 
    532532           <property name="toolTip" > 
    533             <string>Copy authorization data of selected service to clipboard</string> 
     533            <string>Copy onion-address of selected service to clipboard</string> 
    534534           </property> 
    535535           <property name="text" > 
  • vidalia/branches/hidden-services/src/vidalia/config/servicesettings.cpp

    r2972 r2973  
    121121  QStringList serviceAuthdataList; 
    122122  QString torConfString; 
     123  QString *errmsg; 
    123124  if(list.size() > 0) { 
     125    bool first = true; 
    124126    foreach(ServiceAuthorizationData tempService, list) { 
    125127      serviceAuthdataList << tempService.toString(); 
    126128      //HidServAuth <onion address> <cookie> <optional_comment> 
    127       torConfString.append(tempService.authdata()); 
    128       torConfString.append(" "+tempService.identification()); 
    129       torControl()->setConf("HidServAuth", torConfString); 
    130     } 
     129      torConfString.append("HidServAuth="); 
     130      torConfString.append(string_escape(tempService.authdata()+" "+tempService.identification())); 
     131      torConfString.append(" "); 
     132    } 
     133    torConfString.remove(torConfString.length()-1, 1); 
     134    torControl()->setConf(torConfString, errmsg); 
    131135  } 
    132136  setValue(SETTING_TOR_CONSUMED_SERVICES, serviceAuthdataList);