remove original binary

This commit is contained in:
2024-01-27 14:46:23 +00:00
parent a73b214145
commit 1df9e5097a
3 changed files with 0 additions and 33 deletions

View File

@@ -1,29 +0,0 @@
package main
import (
"log"
"os"
"github.com/dgparker/lilproxy/pkg/udpproxy"
)
func main() {
target := os.Getenv("LILPROXY_TARGET")
if target == "" {
log.Fatal("env LILPROXY_TARGET required")
}
port := os.Getenv("LILPROXY_PORT")
if port == "" {
log.Fatal("env LILPROXY_PORT required")
}
c, err := udpproxy.New(port, target)
if err != nil {
log.Fatal(err)
}
log.Printf("lilproxy initialized on port: (%s) target address: (%s)", port, target)
log.Fatal(c.ListenAndServe())
}