Skip to content

Commit

Permalink
Merge pull request #14 from mysteriumnetwork/forwarded-userid
Browse files Browse the repository at this point in the history
Use Forwarded header instead of custom UserID
  • Loading branch information
soffokl authored Jan 30, 2020
2 parents d110b4c + 3ce0585 commit ea22ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/dialer_http_connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (c *Connection) ConnectTo(conn io.ReadWriter, address string, userID string
}

if len(userID) > 0 {
req.Header.Add("UserID", userID)
req.Header.Add("Forwarded", "UserID="+userID)
}

if len(c.user) > 0 && len(c.pass) > 0 {
Expand Down

0 comments on commit ea22ec3

Please sign in to comment.