Skip to content

Commit

Permalink
separation and a little changes on time values
Browse files Browse the repository at this point in the history
  • Loading branch information
RadKesvat committed Jun 28, 2023
1 parent 02b577a commit e8f1af9
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/globals.nim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import dns_resolve, hashes, print, parseopt, strutils, random, net, strutils, osproc , strformat
import std/sha1

const version = "11.1"
const version = "11.2"

type RunMode*{.pure.} = enum
tunnel, server
Expand All @@ -12,16 +12,17 @@ var mode*: RunMode = RunMode.tunnel
const log_data_len* = false
const log_conn_create* = true
const log_conn_destory* = true
const log_conn_error* = true


# [Connection]
var trust_time*: uint = 3 #secs
var pool_size*: uint = 16 #secs
var max_idle_time*:uint = 30 #secs (default TCP RFC is 3600)
var max_idle_time*:uint = 240 #secs (default TCP RFC is 3600)
var max_pool_unused_time*:uint = 15 #secs
const mux*: bool = false
const socket_buffered* = false
const chunk_size* = 4000

const chunk_size* = 4000

# [Routes]
const listen_addr* = "0.0.0.0"
Expand All @@ -42,11 +43,16 @@ var sh2*: uint32
var sh3*: uint8
var random_600* = newString(len = 600)

# [settings]
var disable_ufw* = true
var reset_iptable* = true

# [multiport]
var multi_port* = false
var pmin:int
var pmax:int

# [posix constants]
const SO_ORIGINAL_DST* = 80
const SOL_IP* = 0

Expand Down

0 comments on commit e8f1af9

Please sign in to comment.