15 lines
183 B
Go
15 lines
183 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
p := Server{
|
|
Addr: os.Getenv("SOURCE_ADDR"),
|
|
Target: os.Getenv("DESTINATION_ADDR"),
|
|
}
|
|
|
|
log.Panicln(p.ListenAndServe())
|
|
}
|