Browse Source

chore: adapt to new deprecated methods (#560)

* chore: replace network.WithUseTransient(deprecated) with network.WithAllowLimitedConn

Signed-off-by: mudler <[email protected]>

* chore(docs): remove deprecated description

Signed-off-by: mudler <[email protected]>

---------

Signed-off-by: mudler <[email protected]>
Ettore Di Giacinto 1 year ago
parent
commit
ce43170dee
2 changed files with 1 additions and 3 deletions
  1. 1 1
      cmd/main.go
  2. 0 2
      docs/config.toml

+ 1 - 1
cmd/main.go

@@ -212,7 +212,7 @@ func Main() func(c *cli.Context) error {
 		ctx := context.Background()
 		ctx := context.Background()
 
 
 		if c.Bool("transient-conn") {
 		if c.Bool("transient-conn") {
-			ctx = network.WithUseTransient(ctx, "accept")
+			ctx = network.WithAllowLimitedConn(ctx, "accept")
 		}
 		}
 
 
 		if c.Bool("api") {
 		if c.Bool("api") {

+ 0 - 2
docs/config.toml

@@ -54,13 +54,11 @@ id = "UA-00000000-0"
 [languages]
 [languages]
 [languages.en]
 [languages.en]
 title = "EdgeVPN"
 title = "EdgeVPN"
-description = "Package manager built from containers"
 languageName ="English"
 languageName ="English"
 # Weight used for sorting.
 # Weight used for sorting.
 weight = 1
 weight = 1
 #[languages.it]
 #[languages.it]
 #title = "EdgeVPN"
 #title = "EdgeVPN"
-#description = "Gestore di pacchetti basato su containers"
 #languageName ="Italian"
 #languageName ="Italian"
 #contentDir = "content/it"
 #contentDir = "content/it"
 #time_format_default = "02.01.2006"
 #time_format_default = "02.01.2006"