mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-19 20:32:35 +02:00

- Updated Dockerfile and Makefile for socket-proxy build. - Modified go.mod to include necessary dependencies. - Updated CI workflows for socket-proxy integration. - Better module isolation - Code refactor
16 lines
347 B
Go
16 lines
347 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"net/http"
|
|
|
|
socketproxy "github.com/yusing/go-proxy/socketproxy/pkg"
|
|
)
|
|
|
|
func main() {
|
|
if socketproxy.ListenAddr == "" {
|
|
log.Fatal("Docker socket address is not set")
|
|
}
|
|
log.Printf("Docker socket listening on: %s", socketproxy.ListenAddr)
|
|
http.ListenAndServe(socketproxy.ListenAddr, socketproxy.NewHandler())
|
|
}
|