Rod Hynes 10 лет назад
Родитель
Сommit
dda8004831
1 измененных файлов с 0 добавлено и 8 удалено
  1. 0 8
      psiphon/serverApi.go

+ 0 - 8
psiphon/serverApi.go

@@ -44,7 +44,6 @@ type Session struct {
 	baseRequestUrl       string
 	psiphonHttpsClient   *http.Client
 	statsRegexps         *transferstats.Regexps
-	statsServerId        string
 	clientRegion         string
 	clientUpgradeVersion string
 }
@@ -77,7 +76,6 @@ func NewSession(config *Config, tunnel *Tunnel, sessionId string) (session *Sess
 		sessionId:          sessionId,
 		baseRequestUrl:     makeBaseRequestUrl(config, tunnel, sessionId),
 		psiphonHttpsClient: psiphonHttpsClient,
-		statsServerId:      tunnel.serverEntry.IpAddress,
 	}
 
 	err = session.doHandshakeRequest()
@@ -127,12 +125,6 @@ func (session *Session) DoConnectedRequest() error {
 	return nil
 }
 
-// ServerID provides a unique identifier for the server the session connects to.
-// This ID is consistent between multiple sessions/tunnels connected to that server.
-func (session *Session) StatsServerID() string {
-	return session.statsServerId
-}
-
 // StatsRegexps gets the Regexps used for the statistics for this tunnel.
 func (session *Session) StatsRegexps() *transferstats.Regexps {
 	return session.statsRegexps