mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-05 00:27:17 -04:00
unix: get *BSD syscalls.master files using HTTPS
Use the https:// URLs to get syscalls.master for freebsd, openbsd and dragonfly. For netbsd, keep using the http:// URL since HTTPS is not supported. Change-Id: Ibcbd19d5e3b4585552ea65dcdc742c2e7bfce944 Reviewed-on: https://go-review.googlesource.com/c/157057 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
committed by
Tobias Klauser
parent
7fbe1cd0fc
commit
48ac38b7c8
+1
-1
@@ -106,7 +106,7 @@ func main() {
|
||||
|
||||
file := strings.TrimSpace(os.Args[1])
|
||||
var syscalls io.Reader
|
||||
if strings.HasPrefix(file, "http://") {
|
||||
if strings.HasPrefix(file, "https://") || strings.HasPrefix(file, "http://") {
|
||||
// Download syscalls.master file
|
||||
syscalls = fetchFile(file)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user