function connectTo(aHost) {
    Services.prefs.setCharPref("network.dns.localDomains", aHost);
    let connection = new Connection(aHost);
    return connection.go();
  }
/* Returns a promise to connect to aHost that resolves to the result of that
   * connection */
Returns a promise to connect to aHost that resolves to the result of that
connection
Returns a promise to connect to aHost that resolves to the result of that connection
function connectTo(aHost) {
    Services.prefs.setCharPref("network.dns.localDomains", aHost);
    let connection = new Connection(aHost);
    return connection.go();
  }
function connectTo ( aHost ) { Services . prefs . setCharPref ( "network.dns.localDomains" , aHost ) ; let connection = new Connection ( aHost ) ; return connection . go ( ) ; }
Returns a promise to connect to aHost that resolves to the result of that
 connection
Returns a promise to connect to aHost that resolves to the result of that connection