pkg/environment: Remove 'net' related functions

This commit continues removing the environment abstraction and removes
all 'net' related functions, replacing them by their native equivalents.
This commit is contained in:
Tom Wiesing 2023-03-02 11:07:50 +01:00
parent 14bb7f1086
commit 39207a1cb5
No known key found for this signature in database
7 changed files with 8 additions and 47 deletions

View file

@ -1,6 +1,8 @@
package cmd
import (
"net"
wisski_distillery "github.com/FAU-CDI/wisski-distillery"
"github.com/FAU-CDI/wisski-distillery/internal/cli"
"github.com/tkw1536/goprogram/exit"
@ -39,7 +41,7 @@ func (s ssh) Run(context wisski_distillery.Context) error {
context.Printf("Listening on %s\n", s.Bind)
// make a new listener
listener, err := dis.Still.Environment.Listen("tcp", s.Bind)
listener, err := net.Listen("tcp", s.Bind)
if err != nil {
return errServerListen.Wrap(err)
}