Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
T
tls-forward
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangmingming
tls-forward
Commits
bd5578db
Commit
bd5578db
authored
Nov 10, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
e77cf593
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
main.go
main.go
+2
-0
No files found.
main.go
View file @
bd5578db
package
main
import
(
"fmt"
nested
"github.com/antonfisher/nested-logrus-formatter"
"github.com/gin-gonic/gin"
"github.com/sirupsen/logrus"
...
...
@@ -46,6 +47,7 @@ func main() {
logrus
.
SetOutput
(
logWriter
)
//logrus.SetOutput(io.MultiWriter(logWriter, os.Stdout))
//logrus.SetOutput(os.Stdout)
fmt
.
Println
(
"VERSION 1.0.1"
)
r
:=
gin
.
New
()
//创建一个默认的路由引擎
r
.
Use
(
LoggerMiddleware
())
r
.
POST
(
"/tls/forward"
,
tls
.
Forward
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment