resolveExternalAdress() {
    const { config: { defaultIp, echoOpts } } = this;

    if (defaultIp) {
      this.defaultIp = defaultIp;
    }

    return request(echoOpts).then(data => {
      if (!data.ip) {
        throw new Error('cant determine current up');
      }

      this.defaultIp = data.ip;
    });
  }
/**
   * In this function we detect currently used external ip address
   */
In this function we detect currently used external ip address
In this function we detect currently used external ip address
resolveExternalAdress() {
    const { config: { defaultIp, echoOpts } } = this;
    if (defaultIp) {
      this.defaultIp = defaultIp;
    }
    return request(echoOpts).then(data => {
      if (!data.ip) {
        throw new Error('cant determine current up');
      }
      this.defaultIp = data.ip;
    });
  }
resolveExternalAdress ( ) { const { config : { defaultIp , echoOpts } } = this ; if ( defaultIp ) { this . defaultIp = defaultIp ; } return request ( echoOpts ) . then ( data => { if ( ! data . ip ) { throw new Error ( 'cant determine current up' ) ; } this . defaultIp = data . ip ; } ) ; }
In this function we detect currently used external ip address
In this function we detect currently used external ip address