mirror of
https://github.com/hacdias/webdav.git
synced 2024-04-21 12:32:06 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fca4e54839 | ||
|
|
da6dd253d5 |
@@ -22,10 +22,8 @@ jobs:
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
# So GoReleaser can generate the changelog properly
|
||||
- name: Unshallowify the repo clone
|
||||
run: git fetch --prune --unshallow
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
# 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
|
||||
|
||||
+11
-3
@@ -53,9 +53,17 @@ set WD_CERT.`,
|
||||
|
||||
cfg := readConfig(flags)
|
||||
|
||||
// Builds the address and a listener.
|
||||
laddr := getOpt(flags, "address") + ":" + getOpt(flags, "port")
|
||||
listener, err := net.Listen("tcp", laddr)
|
||||
// Build address and listener
|
||||
laddr := getOpt(flags, "address")
|
||||
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 {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user