[tor-commits] [flashproxy/master] getenv function.
dcf at torproject.org
dcf at torproject.org
Sun Feb 3 03:40:13 UTC 2013
commit c38bb489b2b4cf1b055363af27a8e2609ba40076
Author: David Fifield <david at bamsoftware.com>
Date: Mon Jan 28 22:09:26 2013 -0800
getenv function.
---
websocket-transport/pt.go | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/websocket-transport/pt.go b/websocket-transport/pt.go
index cb349e0..15848d1 100644
--- a/websocket-transport/pt.go
+++ b/websocket-transport/pt.go
@@ -32,6 +32,10 @@ import (
"strings"
)
+func getenv(key string) string {
+ return os.Getenv(key)
+}
+
// Abort with an ENV-ERROR if the environment variable isn't set.
func getenvRequired(key string) string {
value := os.Getenv(key)
More information about the tor-commits
mailing list