mirror of
https://github.com/tenox7/wrp.git
synced 2024-11-24 22:30:58 +00:00
print architecture
This commit is contained in:
parent
67ed26b8f4
commit
f93058fed3
6
wrp.go
6
wrp.go
@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// WRP - Web Rendering Proxy
|
// WRP - Web Rendering Proxy
|
||||||
//
|
//
|
||||||
// Copyright (c) 2013-2018 Antoni Sawicki
|
// Copyright (c) 2013-2024 Antoni Sawicki
|
||||||
// Copyright (c) 2019-2024 Google LLC
|
// Copyright (c) 2019-2024 Google LLC
|
||||||
//
|
//
|
||||||
|
|
||||||
@ -29,6 +29,7 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
|
"runtime"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"syscall"
|
"syscall"
|
||||||
@ -548,8 +549,9 @@ func printIPs(b string) {
|
|||||||
// Main
|
// Main
|
||||||
func main() {
|
func main() {
|
||||||
var err error
|
var err error
|
||||||
|
log.SetFlags(log.LstdFlags | log.Lshortfile)
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
log.Printf("Web Rendering Proxy Version %s\n", version)
|
log.Printf("Web Rendering Proxy Version %s (%v)\n", version, runtime.GOARCH)
|
||||||
log.Printf("Args: %q", os.Args)
|
log.Printf("Args: %q", os.Args)
|
||||||
if len(os.Getenv("PORT")) > 0 {
|
if len(os.Getenv("PORT")) > 0 {
|
||||||
*addr = ":" + os.Getenv(("PORT"))
|
*addr = ":" + os.Getenv(("PORT"))
|
||||||
|
Loading…
Reference in New Issue
Block a user