Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion server-packet.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ func (r *packetResponseWriter) Write(packet *Packet) error {
return nil
}

type Logger interface {
Printf(format string, v ...interface{})
}

// PacketServer listens for RADIUS requests on a packet-based protocols (e.g.
// UDP).
type PacketServer struct {
Expand All @@ -49,7 +53,7 @@ type PacketServer struct {
// ErrorLog specifies an optional logger for errors
// around packet accepting, processing, and validation.
// If nil, logging is done via the log package's standard logger.
ErrorLog *log.Logger
ErrorLog Logger

shutdownRequested int32

Expand Down