1
0
mirror of https://github.com/fumiama/terasu.git synced 2026-06-05 01:00:23 +08:00
Go to file
2026-02-16 16:10:52 +08:00
2025-10-23 01:23:05 +08:00
2026-02-16 15:20:45 +08:00
2026-02-16 15:20:45 +08:00
2026-02-16 15:20:45 +08:00
2026-02-16 15:20:45 +08:00
2026-02-16 16:10:52 +08:00
2026-02-16 15:20:45 +08:00
2026-02-16 15:20:45 +08:00
2026-02-16 15:20:45 +08:00
2025-10-23 23:33:06 +08:00
2026-02-16 15:20:45 +08:00
2024-04-14 23:30:30 +09:00
2025-10-23 01:23:05 +08:00
2025-10-23 01:19:16 +08:00
2026-02-16 15:20:45 +08:00
2025-10-27 22:47:46 +08:00
2025-10-27 22:47:46 +08:00
2025-10-27 22:47:46 +08:00
2024-04-14 23:30:30 +09:00
2026-02-16 15:50:54 +08:00
2025-10-23 23:33:06 +08:00

TeRaSu (TRS)

よの光遍く空へ照しつつ

土棲むものは孰れか見ゆや

counter

Usage

tls.Client(terasu.NewConn(conn), &tls.Config{
    ServerName: host,
}).Handshake()

Custom Plugin

Custom plugin code is located in the ext/custom directory. You can write and build your own plugin.

  1. Write your plugin code in the ext/custom directory
  2. Build the plugin:
go build -o terasu.plugin.so -buildmode=plugin -ldflags="-s -w" -trimpath ./ext/custom

Example 1. Build for OpenWrt arm64

sudo apt-get update
sudo apt-get install -y build-essential module-assistant gcc-9-multilib-i686-linux-gnu g++-9-multilib-i686-linux-gnu
wget -nv https://downloads.openwrt.org/releases/23.05.3/targets/ipq807x/generic/openwrt-sdk-23.05.3-ipq807x-generic_gcc-12.3.0_musl.Linux-x86_64.tar.xz
tar -xJf openwrt-sdk-23.05.3-ipq807x-generic_gcc-12.3.0_musl.Linux-x86_64.tar.xz
mv openwrt-sdk-23.05.3-ipq807x-generic_gcc-12.3.0_musl.Linux-x86_64 op23053-ipq807x
rm openwrt-sdk-23.05.3-ipq807x-generic_gcc-12.3.0_musl.Linux-x86_64.tar.xz

PATH=$PATH:`pwd`/op23053-ipq807x/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.3.0_musl/bin/
export PATH
export STAGING_DIR=`pwd`/op23053-ipq807x/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.3.0_musl/
export CGO_CFLAGS=$CGO_CFLAGS" -fuse-ld=bfd"
echo $CGO_CFLAGS
export CGO_LDFLAGS=$CGO_LDFLAGS" -fuse-ld=bfd"
echo $CGO_LDFLAGS
export GOGCCFLAGS=$GOGCCFLAGS" -fuse-ld=bfd"
echo $GOGCCFLAGS
CGO_ENABLED=1 GOOS=linux GOARCH=arm64 GOARM=8 CC=aarch64-openwrt-linux-gcc CXX=aarch64-openwrt-linux-g++ AR=aarch64-openwrt-linux-ar go build -o terasu.plugin.so -buildmode=plugin -ldflags="-s -w" -trimpath ./ext/custom
Description
よの光遍く空へ照しつつ土棲むものは孰れか見ゆや
Readme AGPL-3.0 127 KiB
Languages
Go 100%