Skip to content

Commit

Permalink
limited min version to 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
diegohce committed Jul 1, 2019
1 parent 78d7590 commit 59dcb89
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 48 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GOOS=linux
GOFILES=gosecure.go
VERSION=0.1.0
VERSION=0.1.1
VERSION_NAME=Ugly Logger
BINARY_NAME=gosecure

Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
# gosecure
Simple command line secure tunneling tool.

`gosecure` supports tls >= 1.2 (yes, 1.3 too!)


## Usage
```
-cert string
Expand Down
46 changes: 0 additions & 46 deletions deb/gosecure_0.1.0_amd64/opt/gosecure/gosecure

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 8 additions & 1 deletion gosecure.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ var (
// CONFIG : Command line arguments instance
var CONFIG Config

func init() {
os.Setenv("GODEBUG", os.Getenv("GODEBUG")+",tls13=1")
}

func main() {
//log.SetFlags(log.Lshortfile)

Expand All @@ -59,7 +63,10 @@ func main() {
return
}

config := &tls.Config{Certificates: []tls.Certificate{cer}}
config := &tls.Config{
Certificates: []tls.Certificate{cer},
MinVersion: tls.VersionTLS12,
}
ln, err := tls.Listen("tcp", CONFIG.local, config)
if err != nil {
log.Println(err)
Expand Down

0 comments on commit 59dcb89

Please sign in to comment.