七牛云

This commit is contained in:
“wanyongkang”
2024-02-29 10:30:38 +08:00
parent ea969dafca
commit 3d3f588690
521 changed files with 13990 additions and 41150 deletions

View File

@@ -0,0 +1,24 @@
package main
import (
"log"
"os"
socks5 "github.com/armon/go-socks5"
)
func main() {
config := socks5.Config{
AuthMethods: []socks5.Authenticator{socks5.UserPassAuthenticator{Credentials: socks5.StaticCredentials{"user": "pass"}}},
Logger: log.New(os.Stderr, "", log.LstdFlags|log.LUTC|log.Lshortfile),
}
server, err := socks5.New(&config)
if err != nil {
panic(err)
}
if err = server.ListenAndServe("tcp", "127.0.0.1:8080"); err != nil {
panic(err)
}
}