aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/main.go b/main.go
index 10e1703..00c0601 100644
--- a/main.go
+++ b/main.go
@@ -14,10 +14,9 @@ import (
"os"
"os/signal"
"regexp"
+ "syscall"
"time"
- "golang.org/x/sys/unix"
-
"go.awhk.org/gosdd"
)
@@ -32,7 +31,7 @@ func main() {
flag.Parse()
done := make(chan os.Signal, 1)
- signal.Notify(done, os.Interrupt, unix.SIGTERM)
+ signal.Notify(done, os.Interrupt, syscall.SIGTERM)
srv := http.Server{Handler: &redirector{regexp.MustCompile(*from), *to, *vcs}}
go func() {