mirror of
https://github.com/Luzifer/nginx-sso.git
synced 2025-04-17 12:41:51 +00:00
Fix: Host already had the port attached
This happened when providing a port number in the URI as the `Host` field still has the port number while the `Hostname()` method only returns the hostname without the port. fixes #33 Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
085a158371
commit
3cd5ab380a
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ func (a authLDAP) dial() (*ldap.Conn, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
host := u.Host
|
||||
host := u.Hostname()
|
||||
port := u.Port()
|
||||
|
||||
var l *ldap.Conn
|
||||
|
|
Loading…
Add table
Reference in a new issue