Skip to content

Instantly share code, notes, and snippets.

diff --git a/src/tuntap/iface.go b/src/tuntap/iface.go
index bd849c7..e33c4f9 100644
--- a/src/tuntap/iface.go
+++ b/src/tuntap/iface.go
@@ -54,24 +54,28 @@ type tunReader struct {
}
func (r *tunReader) _read() {
- // Get a slice to store the packet in
- recvd := util.ResizeBytes(util.GetBytes(), int(r.tun.mtu)+TUN_OFFSET_BYTES)
You'll need to tell your Yggdrasil-go to use your local checkout of the wireguard code, e.g. by updating your go.mod with a 'replace' line like this:
replace golang.zx2c4.com/wireguard => /path/to/your/wireguard-go
Then, patch your wireguard-go source tree like this:
wireguard-go$ git diff
diff --git a/tun/tun_linux.go b/tun/tun_linux.go
index 791e0be..511e17f 100644
@cure
cure / docker-dump.sh
Last active August 6, 2020 20:12 — forked from ball6847/docker-dump.sh
script to save all docker image, and load them back
#!/bin/bash
help() {
echo "\
Usage: $0 save - save all docker images to current directory
$0 load - find all images in current directory then import to docker"
exit 1
}
get-image-field() {

Keybase proof

I hereby claim:

  • I am cure on github.
  • I am cure (https://keybase.io/cure) on keybase.
  • I have a public key whose fingerprint is C6C1 7E1F DBD4 8F98 244F 42C1 F673 C518 2A4D 5CE5

To claim this, I am signing this object: