diff options
author | dirkm <dirkmoermans@gmail.com> | 2019-07-03 20:23:29 +0200 |
---|---|---|
committer | Ned McClain <nedmcclain@gmail.com> | 2019-07-03 20:23:29 +0200 |
commit | ee4388c038f5d0912e2e2700443853308b6e621d (patch) | |
tree | 6cad5748c8de565bc02ff579adc158f8664f76cd /server.go | |
parent | Implement FilterSubstrings (#2) (diff) | |
download | ldap-ee4388c038f5d0912e2e2700443853308b6e621d.tar ldap-ee4388c038f5d0912e2e2700443853308b6e621d.tar.gz ldap-ee4388c038f5d0912e2e2700443853308b6e621d.tar.bz2 ldap-ee4388c038f5d0912e2e2700443853308b6e621d.tar.lz ldap-ee4388c038f5d0912e2e2700443853308b6e621d.tar.xz ldap-ee4388c038f5d0912e2e2700443853308b6e621d.tar.zst ldap-ee4388c038f5d0912e2e2700443853308b6e621d.zip |
Diffstat (limited to 'server.go')
-rw-r--r-- | server.go | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -2,12 +2,13 @@ package ldap import ( "crypto/tls" - "github.com/nmcclain/asn1-ber" "io" "log" "net" "strings" "sync" + + "github.com/nmcclain/asn1-ber" ) type Binder interface { @@ -156,7 +157,7 @@ func (server *Server) ListenAndServeTLS(listenString string, certFile string, ke if err != nil { return err } - err = server.serve(ln) + err = server.Serve(ln) if err != nil { return err } @@ -184,14 +185,14 @@ func (server *Server) ListenAndServe(listenString string) error { if err != nil { return err } - err = server.serve(ln) + err = server.Serve(ln) if err != nil { return err } return nil } -func (server *Server) serve(ln net.Listener) error { +func (server *Server) Serve(ln net.Listener) error { newConn := make(chan net.Conn) go func() { for { |