1
0
mirror of https://github.com/fumiama/terasu.git synced 2026-06-10 13:10:28 +08:00

feat: add plugin

This commit is contained in:
源文雨
2026-02-16 15:20:45 +08:00
parent f6d5336492
commit 1d573cf2be
14 changed files with 234 additions and 295 deletions

View File

@@ -19,3 +19,14 @@ tls.Client(terasu.NewConn(conn), &tls.Config{
ServerName: host,
}).Handshake()
```
## Custom Plugin (Linux Only)
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:
```bash
GOOS=linux go build -o terasu.plugin.so -buildmode=plugin -ldflags="-s -w" -trimpath ./ext/custom
```