summaryrefslogtreecommitdiff
path: root/modes
diff options
context:
space:
mode:
authorBluesaxorcist <joshua@operatorfoundation.org>2019-10-13 21:21:42 -0500
committerBluesaxorcist <joshua@operatorfoundation.org>2019-10-13 21:21:42 -0500
commit3eee4e2869a783c6f3a5baef279406d82c063f23 (patch)
tree3c79963aa8afb96abeaba5606d81affa071687c8 /modes
parentf1832e8c060eb6f5593fdbc46dd13085d3eef588 (diff)
renamed all of the iatMode strings to iat-mode
Diffstat (limited to 'modes')
-rw-r--r--modes/pt_socks5/pt_socks5.go4
-rw-r--r--modes/stun_udp/stun_udp.go4
-rw-r--r--modes/transparent_udp/transparent_udp.go4
3 files changed, 6 insertions, 6 deletions
diff --git a/modes/pt_socks5/pt_socks5.go b/modes/pt_socks5/pt_socks5.go
index 59c4a7c..90bf7fc 100644
--- a/modes/pt_socks5/pt_socks5.go
+++ b/modes/pt_socks5/pt_socks5.go
@@ -184,13 +184,13 @@ func ServerSetup(termMon *termmon.TermMonitor, bindaddrString string, ptServerIn
listen = transport.Listen
case "obfs4":
if cert, ok := args["cert"]; ok {
- if iatModeStr, ok2 := args["iatMode"]; ok2 {
+ if iatModeStr, ok2 := args["iat-mode"]; ok2 {
iatMode, err := strconv.Atoi(iatModeStr[0])
if err != nil {
transport := obfs4.NewObfs4Client(cert[0], iatMode)
listen = transport.Listen
} else {
- log.Errorf("obfs4 transport bad iatMode value: %s", iatModeStr)
+ log.Errorf("obfs4 transport bad iat-mode value: %s", iatModeStr)
return
}
} else {
diff --git a/modes/stun_udp/stun_udp.go b/modes/stun_udp/stun_udp.go
index 70d5565..cba7132 100644
--- a/modes/stun_udp/stun_udp.go
+++ b/modes/stun_udp/stun_udp.go
@@ -215,13 +215,13 @@ func ServerSetup(termMon *termmon.TermMonitor, bindaddrString string, ptServerIn
listen=transport.Listen
case "obfs4":
if cert, ok := args["cert"]; ok {
- if iatModeStr, ok2 := args["iatMode"]; ok2 {
+ if iatModeStr, ok2 := args["iat-mode"]; ok2 {
iatMode, err := strconv.Atoi(iatModeStr[0])
if err != nil {
transport := obfs4.NewObfs4Client(cert[0], iatMode)
listen=transport.Listen
} else {
- log.Errorf("obfs4 transport bad iatMode value: %s", iatModeStr)
+ log.Errorf("obfs4 transport bad iat-mode value: %s", iatModeStr)
return
}
} else {
diff --git a/modes/transparent_udp/transparent_udp.go b/modes/transparent_udp/transparent_udp.go
index f40da14..d69059d 100644
--- a/modes/transparent_udp/transparent_udp.go
+++ b/modes/transparent_udp/transparent_udp.go
@@ -234,13 +234,13 @@ func ServerSetup(termMon *termmon.TermMonitor, bindaddrString string, ptServerIn
listen = transport.Listen
case "obfs4":
if cert, ok := args["cert"]; ok {
- if iatModeStr, ok2 := args["iatMode"]; ok2 {
+ if iatModeStr, ok2 := args["iat-mode"]; ok2 {
iatMode, err := strconv.Atoi(iatModeStr[0])
if err != nil {
transport := obfs4.NewObfs4Client(cert[0], iatMode)
listen = transport.Listen
} else {
- log.Errorf("obfs4 transport bad iatMode value: %s", iatModeStr)
+ log.Errorf("obfs4 transport bad iat-mode value: %s", iatModeStr)
return
}
} else {