Based on RFC 4193 and this guide.
This should work anywhere coreutils is available.
date +%s%N | tr -d '\n' | cat - /etc/machine-id | sha1sum | cut -c 31-40 | sed 's|^|fd|; s|.\{4\}|&:|g; s|$|:/64|'Based on RFC 4193 and this guide.
This should work anywhere coreutils is available.
date +%s%N | tr -d '\n' | cat - /etc/machine-id | sha1sum | cut -c 31-40 | sed 's|^|fd|; s|.\{4\}|&:|g; s|$|:/64|'Reference: https://www.digitalocean.com/community/tutorials/how-to-set-up-wireguard-on-ubuntu-20-04
IPv6 network choice algorithm:
| fn main() { | |
| extract_readme_example(); | |
| } | |
| fn extract_readme_example() { | |
| use std::{env, fmt::Write, fs, path::Path}; | |
| println!("cargo:rerun-if-changed=README.md"); | |
| // load README |