summaryrefslogtreecommitdiffstats
path: root/server.go
diff options
context:
space:
mode:
authordirkm <dirkmoermans@gmail.com>2019-07-03 20:23:29 +0200
committerNed McClain <nedmcclain@gmail.com>2019-07-03 20:23:29 +0200
commitee4388c038f5d0912e2e2700443853308b6e621d (patch)
tree6cad5748c8de565bc02ff579adc158f8664f76cd /server.go
parentImplement FilterSubstrings (#2) (diff)
downloadldap-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 '')
-rw-r--r--server.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/server.go b/server.go
index dcb6406..3576475 100644
--- a/server.go
+++ b/server.go
@@ -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 {