aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--run.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/run.go b/run.go
index 6b7664f..cecfd44 100644
--- a/run.go
+++ b/run.go
@@ -56,7 +56,10 @@ func Run() {
for cc := range clts {
go func(cc *ClientConn) {
- ack, _ := cc.SendCmd(&mt.ToCltDisco{Reason: mt.Shutdown})
+ ack, _ := cc.SendCmd(&mt.ToCltDisco{
+ Reason: mt.Custom,
+ Custom: "Proxy shutting down.",
+ })
select {
case <-cc.Closed():
case <-ack: