mirror of
https://github.com/hacdias/webdav.git
synced 2026-09-22 19:21:53 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fca4e54839 | ||
|
|
da6dd253d5 |
@@ -22,10 +22,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
# So GoReleaser can generate the changelog properly
|
fetch-depth: 0
|
||||||
- name: Unshallowify the repo clone
|
|
||||||
run: git fetch --prune --unshallow
|
|
||||||
|
|
||||||
# https://github.community/t5/GitHub-Actions/How-to-get-just-the-tag-name/m-p/32167/highlight/true#M1027
|
# https://github.community/t5/GitHub-Actions/How-to-get-just-the-tag-name/m-p/32167/highlight/true#M1027
|
||||||
- name: Print Go version and environment
|
- name: Print Go version and environment
|
||||||
|
|||||||
+11
-3
@@ -53,9 +53,17 @@ set WD_CERT.`,
|
|||||||
|
|
||||||
cfg := readConfig(flags)
|
cfg := readConfig(flags)
|
||||||
|
|
||||||
// Builds the address and a listener.
|
// Build address and listener
|
||||||
laddr := getOpt(flags, "address") + ":" + getOpt(flags, "port")
|
laddr := getOpt(flags, "address")
|
||||||
listener, err := net.Listen("tcp", laddr)
|
var lnet string
|
||||||
|
if strings.HasPrefix(laddr, "unix:") {
|
||||||
|
laddr = laddr[5:]
|
||||||
|
lnet = "unix"
|
||||||
|
} else {
|
||||||
|
laddr = laddr + ":" + getOpt(flags, "port")
|
||||||
|
lnet = "tcp"
|
||||||
|
}
|
||||||
|
listener, err := net.Listen(lnet, laddr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user