Ver código fonte

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 ano atrás
pai
commit
ce43170dee
2 arquivos alterados com 1 adições e 3 exclusões
  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()
 
 		if c.Bool("transient-conn") {
-			ctx = network.WithUseTransient(ctx, "accept")
+			ctx = network.WithAllowLimitedConn(ctx, "accept")
 		}
 
 		if c.Bool("api") {

+ 0 - 2
docs/config.toml

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