fix: adjust log output

This commit is contained in:
SunBK201 2023-12-05 10:59:16 +08:00
parent fe6bd6b1e6
commit a24deb8d43
4 changed files with 7 additions and 3 deletions

View File

@ -61,6 +61,6 @@ rules:
## Roadmap
- [ ] 性能提升,降低 CPU 占用,降低内存占用
- [ ] 优化部署流程
- [x] 优化部署流程
- [ ] 支持 IPv6
- [ ] 支持 SOCK5 Auth

View File

@ -23,6 +23,10 @@ if [ -f "ua3f" ]; then
rm "ua3f"
fi
if [ -f "/var/log/ua3f.log" ]; then
rm "/var/log/ua3f.log"
fi
if [ -f "$ua3f_tar" ]; then
rm "$ua3f_tar"
fi

View File

@ -19,10 +19,10 @@ var payloadByte []byte
var cache *expirable.LRU[string, string]
func main() {
var payload string
var addr string
var port int
flag.StringVar(&addr, "b", "127.0.0.1", "bind address (default: 127.0.0.1)")
flag.IntVar(&port, "p", 1080, "port")
flag.StringVar(&payload, "f", "FFF", "User-Agent")

View File

@ -3,7 +3,7 @@
START=99
start(){
echo "ua3f is starting"
/root/ua3f >> /var/log/ua3f.log 2>&1 &
/root/ua3f > /var/log/ua3f.log 2>&1 &
}
stop(){