diff options
| author | Paul Buetow <paul@buetow.org> | 2021-10-31 17:29:29 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2021-10-31 17:29:29 +0200 |
| commit | 0ad1a810131f79f51546ecbd75419119c799937d (patch) | |
| tree | f9e84fc2db0a7e20e325ff37339a8b7ba680084b /internal/server | |
| parent | 2dbfcfc56ecf564cf301e1479522f83d6ca0c966 (diff) | |
rename spartan mode to plain mode
Diffstat (limited to 'internal/server')
| -rw-r--r-- | internal/server/handlers/basehandler.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/server/handlers/basehandler.go b/internal/server/handlers/basehandler.go index 53bf375..897ff81 100644 --- a/internal/server/handlers/basehandler.go +++ b/internal/server/handlers/basehandler.go @@ -44,7 +44,7 @@ type baseHandler struct { once sync.Once mutex sync.Mutex quiet bool - spartan bool + plain bool serverless bool } @@ -96,7 +96,7 @@ func (h *baseHandler) Read(p []byte) (n int, err error) { n = copy(p, h.readBuf.Bytes()) case line := <-h.lines: - if !h.spartan { + if !h.plain { h.readBuf.WriteString("REMOTE") h.readBuf.WriteString(protocol.FieldDelimiter) h.readBuf.WriteString(h.hostname) @@ -255,9 +255,9 @@ func (h *baseHandler) handleOptions(options map[string]string) { dlog.Server.Debug(h.user, "Enabling quiet mode") h.quiet = true } - if spartan, _ := options["spartan"]; spartan == "true" { - dlog.Server.Debug(h.user, "Enabling spartan mode") - h.spartan = true + if plain, _ := options["plain"]; plain == "true" { + dlog.Server.Debug(h.user, "Enabling plain mode") + h.plain = true } if serverless, _ := options["serverless"]; serverless == "true" { dlog.Server.Debug(h.user, "Enabling serverless mode") |
