Skip to content

Commit

Permalink
add file header
Browse files Browse the repository at this point in the history
  • Loading branch information
mingcheng committed Jul 7, 2022
1 parent 3eb5662 commit 32e8fee
Show file tree
Hide file tree
Showing 11 changed files with 118 additions and 2 deletions.
10 changes: 10 additions & 0 deletions backend.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* File: backend.go
* Author: Ming Cheng<mingcheng@outlook.com>
*
* Created Date: Tuesday, June 21st 2022, 6:03:26 pm
* Last Modified: Thursday, July 7th 2022, 6:30:08 pm
*
* http://www.opensource.org/licenses/MIT
*/

package socks5lb

import (
Expand Down
15 changes: 13 additions & 2 deletions cmd/socks5lb/main.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
/**
* File: main.go
* Author: Ming Cheng<mingcheng@outlook.com>
*
* Created Date: Wednesday, June 22nd 2022, 12:39:47 pm
* Last Modified: Thursday, July 7th 2022, 6:29:42 pm
*
* http://www.opensource.org/licenses/MIT
*/

package main

import (
"flag"
"io/ioutil"
"syscall"

"github.com/judwhite/go-svc"
"github.com/mingcheng/socks5lb"
log "github.com/sirupsen/logrus"
"gopkg.in/yaml.v3"
"io/ioutil"
"syscall"

"os"
)
Expand Down
10 changes: 10 additions & 0 deletions cmd/socks5lb/program.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* File: program.go
* Author: Ming Cheng<mingcheng@outlook.com>
*
* Created Date: Wednesday, July 6th 2022, 2:14:35 pm
* Last Modified: Thursday, July 7th 2022, 6:29:55 pm
*
* http://www.opensource.org/licenses/MIT
*/

package main

import (
Expand Down
10 changes: 10 additions & 0 deletions config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* File: config.go
* Author: Ming Cheng<mingcheng@outlook.com>
*
* Created Date: Tuesday, June 21st 2022, 6:03:38 pm
* Last Modified: Thursday, July 7th 2022, 6:30:15 pm
*
* http://www.opensource.org/licenses/MIT
*/

package socks5lb

type Configure struct {
Expand Down
10 changes: 10 additions & 0 deletions pool.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* File: pool.go
* Author: Ming Cheng<mingcheng@outlook.com>
*
* Created Date: Tuesday, June 21st 2022, 6:03:26 pm
* Last Modified: Thursday, July 7th 2022, 6:30:57 pm
*
* http://www.opensource.org/licenses/MIT
*/

package socks5lb

import (
Expand Down
10 changes: 10 additions & 0 deletions redirect.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
//go:build !linux

/**
* File: redirect.go
* Author: Ming Cheng<mingcheng@outlook.com>
*
* Created Date: Wednesday, July 6th 2022, 11:46:51 am
* Last Modified: Thursday, July 7th 2022, 6:31:04 pm
*
* http://www.opensource.org/licenses/MIT
*/

package socks5lb

import (
Expand Down
10 changes: 10 additions & 0 deletions redirect_linux.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
//go:build linux

/**
* File: redirect_linux.go
* Author: Ming Cheng<mingcheng@outlook.com>
*
* Created Date: Wednesday, July 6th 2022, 11:47:00 am
* Last Modified: Thursday, July 7th 2022, 6:32:42 pm
*
* http://www.opensource.org/licenses/MIT
*/

package socks5lb

import (
Expand Down
10 changes: 10 additions & 0 deletions server.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* File: server.go
* Author: Ming Cheng<mingcheng@outlook.com>
*
* Created Date: Wednesday, July 6th 2022, 5:39:05 pm
* Last Modified: Thursday, July 7th 2022, 6:31:24 pm
*
* http://www.opensource.org/licenses/MIT
*/

package socks5lb

import (
Expand Down
10 changes: 10 additions & 0 deletions socks5.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* File: socks5.go
* Author: Ming Cheng<mingcheng@outlook.com>
*
* Created Date: Wednesday, July 6th 2022, 11:46:39 am
* Last Modified: Thursday, July 7th 2022, 6:31:37 pm
*
* http://www.opensource.org/licenses/MIT
*/

package socks5lb

import (
Expand Down
15 changes: 15 additions & 0 deletions socks5lb.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
###
# File: socks5lb.yml
# Author: Ming Cheng<mingcheng@outlook.com>
#
# Created Date: Wednesday, July 6th 2022, 2:26:10 pm
# Last Modified: Thursday, July 7th 2022, 6:32:10 pm
#
# http://www.opensource.org/licenses/MIT
###

socks5_listen: ":1080"
tproxy_listen:
backends:
Expand All @@ -6,3 +16,8 @@ backends:
check_url: https://www.google.com/robots.txt
initial_alive: true
timeout: 3
- addr: 192.168.1.254:1080
check_config:
check_url: https://twitter.com/robots.txt
initial_alive: true
timeout: 3
10 changes: 10 additions & 0 deletions util.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* File: util.go
* Author: Ming Cheng<mingcheng@outlook.com>
*
* Created Date: Thursday, June 23rd 2022, 8:41:25 pm
* Last Modified: Thursday, July 7th 2022, 6:31:41 pm
*
* http://www.opensource.org/licenses/MIT
*/

package socks5lb

import (
Expand Down

0 comments on commit 32e8fee

Please sign in to comment.