ldap
ldap copied to clipboard
listen on a custom network (ex. unix socket)
This patch modifies ListenAndServe and adds a second optional argument that allows to listen on a custom network. Network is a string, as specified by https://pkg.go.dev/net#Listen
This allows listening on a UNIX socket, as listening on a non-privileged TCP can be insecure.