This commit is contained in:
Adam Ierymenko 2019-09-25 12:36:49 -07:00
commit 8a9669f130
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3
6 changed files with 307 additions and 79 deletions

View file

@ -53,6 +53,9 @@ type LocalConfigSettings struct {
// PortMapping enables uPnP and NAT-PMP support
PortMapping bool
// LogSizeMax is the maximum size of the log in kilobytes or 0 for no limit and -1 to disable logging
LogSizeMax int
// MultipathMode sets the multipath link aggregation mode
MuiltipathMode int
@ -89,6 +92,7 @@ func (lc *LocalConfig) Read(p string, saveDefaultsIfNotExist bool) error {
lc.Settings.TertiaryPort = 32768 + (rand.Int() % 16384)
lc.Settings.PortSearch = true
lc.Settings.PortMapping = true
lc.Settings.LogSizeMax = 128
lc.Settings.MuiltipathMode = 0
switch runtime.GOOS {
case "darwin":