Skip to content

Commit

Permalink
version 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
RadKesvat committed Sep 18, 2023
1 parent 2de2476 commit 3b14d2f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion config.nims
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import std/strformat
import std/strutils


const Release = false
const Release = true


const libs_dir = "libs"
Expand Down
12 changes: 6 additions & 6 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,19 @@ printf "\n"


case $(uname -m) in
x86_64) URL="https://github.com/radkesvat/ReverseTlsTunnel/releases/download/V3.5/v3.5_linux_amd64.zip" ;;
arm) URL="https://github.com/radkesvat/ReverseTlsTunnel/releases/download/V3.5/v3.5_linux_arm64.zip" ;;
aarch64) URL="https://github.com/radkesvat/ReverseTlsTunnel/releases/download/V3.5/v3.5_linux_arm64.zip" ;;
x86_64) URL="https://github.com/radkesvat/ReverseTlsTunnel/releases/download/V3.6/v3.6_linux_amd64.zip" ;;
arm) URL="https://github.com/radkesvat/ReverseTlsTunnel/releases/download/V3.6/v3.6_linux_arm64.zip" ;;
aarch64) URL="https://github.com/radkesvat/ReverseTlsTunnel/releases/download/V3.6/v3.6_linux_arm64.zip" ;;

*) echo "Unable to determine system architecture."; exit 1 ;;

esac


wget $URL -O v3.5_linux_amd64.zip
unzip -o v3.5_linux_amd64.zip
wget $URL -O v3.6_linux_amd64.zip
unzip -o v3.6_linux_amd64.zip
chmod +x RTT
rm v3.5_linux_amd64.zip
rm v3.6_linux_amd64.zip

echo "finished."

Expand Down
11 changes: 8 additions & 3 deletions src/globals.nim
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ var mode*: RunMode = RunMode.iran

# [Log Options]true
const log_conn_create* = true
const log_data_len* = true
const log_conn_destory* = true
const log_conn_error* = true
const log_data_len* = false
const log_conn_destory* = false
const log_conn_error* = false


# [Connection]
var trust_time*: uint = 3 #secs
var pool_size*: uint = 16
var pool_age*: uint = 10
var max_idle_time*: uint = 600 #secs (default TCP RFC is 3600)
var max_pool_unused_time*: uint = 60 #secs
const chunk_size* = 4096
Expand Down Expand Up @@ -230,6 +231,10 @@ proc init*() =
of "pool":
pool_size = parseInt(p.val).uint
print pool_size

of "pool_age":
pool_size = parseInt(p.val).uint
print pool_age

of "trust_time":
trust_time = parseInt(p.val).uint
Expand Down

0 comments on commit 3b14d2f

Please sign in to comment.