From 058a02e6cc3b2910fa3e8dbc36f57669fe94f7d3 Mon Sep 17 00:00:00 2001 From: eyedeekay Date: Sat, 30 Nov 2024 19:18:01 -0500 Subject: [PATCH] Move just a spectacular amount of config stuff into a config package because --- config.go | 10 ---------- config/session.go | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/config.go b/config.go index 293f447..26b3b40 100644 --- a/config.go +++ b/config.go @@ -96,16 +96,6 @@ func (f *I2PConfig) Leasesetsettings() (string, string, string) { return r, s, t } -// SessionStyle returns the session style setting in the form of "STYLE=style" -func (f *I2PConfig) SessionStyle() string { - if f.SessionOptions.Style != "" { - log.WithField("style", f.SessionOptions.Style).Debug("Session style set") - return " STYLE=" + f.SessionOptions.Style + " " - } - log.Debug("Using default STREAM style") - return " STYLE=STREAM " -} - // MinSAM returns the minimum SAM version required in major.minor form func (f *I2PConfig) MinSAM() string { min, _ := f.GetVersions() diff --git a/config/session.go b/config/session.go index 7851dd9..7269dc6 100644 --- a/config/session.go +++ b/config/session.go @@ -71,3 +71,13 @@ func (f *SessionOptions) ToPort() string { log.Debug("ToPort not set") return "" } + +// SessionStyle returns the session style setting in the form of "STYLE=style" +func (f *SessionOptions) SessionStyle() string { + if f.Style != "" { + log.WithField("style", f.Style).Debug("Session style set") + return " STYLE=" + f.Style + " " + } + log.Debug("Using default STREAM style") + return " STYLE=STREAM " +}