Skip to content

Commit 5a60cac

Browse files
committed
Refine condition to specify unix domain socket file.
1 parent cd21ac3 commit 5a60cac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

thumberd/thumberd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ func main() {
200200
http.HandleFunc("/", thumbServer)
201201

202202
if *local != "" { // Run as a local web server
203-
if strings.HasSuffix(*local, ".sock") {
203+
if strings.HasSuffix(*local, ".sock") || strings.HasPrefix(*local, ".") || strings.HasPrefix(*local, "/") {
204204
l, err := net.Listen("unix", *local)
205205
if err != nil {
206206
log.Fatal(err)

0 commit comments

Comments
 (0)