From 2461423589b54caf11a36b5e45062e679056efe5 Mon Sep 17 00:00:00 2001 From: "kayos@tcp.direct" Date: Thu, 22 Sep 2022 17:04:14 -0700 Subject: [PATCH] Compatibility --- defs.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/defs.go b/defs.go index f575575..499178e 100644 --- a/defs.go +++ b/defs.go @@ -135,6 +135,13 @@ type config struct { *sync.RWMutex } +// NewDefaultSwamp returns a new Swamp instance. +// +// Deprecated: use NewProxyEngine instead. +func NewDefaultSwamp() *Swamp { + return NewProxyEngine() +} + // NewProxyEngine returns a Swamp with default options. // After calling this you may use the various "setters" to change the options before calling Swamp.Start(). func NewProxyEngine() *Swamp {