From f7f2ef3663bbbad107a70ce847247ad9420ea642 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Fri, 3 Oct 2025 16:58:37 +0800 Subject: [PATCH] doc: add build instruction --- .gitignore | 1 + README.md | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index 36ccf87..5e4e3f1 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .DS_Dtore +dnskip diff --git a/README.md b/README.md index ec5c617..a6ff923 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,13 @@ A simple Golang DoT proxy using TRS. ## Usage + +### Run ```bash go run -ldflags "-checklinkname=0" main.go ``` + +### Build +```bash +go build -ldflags "-s -w -checklinkname=0" -trimpath -o dnskip main.go +```