summaryrefslogtreecommitdiffhomepage
path: root/tun
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-02-10 00:12:23 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-02-10 00:12:23 +0100
commit587a2b2a2028430893f14f9ac49e1efa5e3f8509 (patch)
tree85294dc6224347a855f640f3770f1ff0d6a854f0 /tun
parent6f08a100410fb61093df5321b685b07ff8b801e6 (diff)
device: return error from Up() and Down()
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tun')
-rw-r--r--tun/netstack/examples/http_client.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/tun/netstack/examples/http_client.go b/tun/netstack/examples/http_client.go
index 2c1f8f4..25a8d12 100644
--- a/tun/netstack/examples/http_client.go
+++ b/tun/netstack/examples/http_client.go
@@ -31,7 +31,10 @@ public_key=25123c5dcd3328ff645e4f2a3fce0d754400d3887a0cb7c56f0267e20fbf3c5b
endpoint=163.172.161.0:12912
allowed_ip=0.0.0.0/0
`)
- dev.Up()
+ err = dev.Up()
+ if err != nil {
+ log.Panic(err)
+ }
client := http.Client{
Transport: &http.Transport{