Ticket #365 (closed defect: invalid)
Server string code does not check IP
| Reported by: | Diablo-D3 | Owned by: | lennart |
|---|---|---|---|
| Milestone: | Component: | daemon | |
| Keywords: | Cc: |
Description
If you give localhost as your server to anything that accepts a ServerString?, and your machine is not literally named localhost, the connection fails; yet, if you give YourMachineName? as your machine's name, it works.
PA needs to resolve your machine's name and the name given in the server string and see if the IPs are identical instead of just trying to match the raw strings.
As such, YourMachineName? and localhost should both resolve to 127.0.0.1, and PA should allow the connection.
Please note that PA should not special case this for localhost only: I could supply foo.lan and my machine's name is really foo.com; as long as both resolve to the same IP, it should connect.
