(upstream, downstream string)
| 411 | } |
| 412 | |
| 413 | func DecideType(upstream, downstream string) { |
| 414 | if upstream == "http" { |
| 415 | Upstream = "http" |
| 416 | } else { |
| 417 | Upstream = "raw" |
| 418 | } |
| 419 | |
| 420 | if downstream == "http" { |
| 421 | Downstream = "http" |
| 422 | } else { |
| 423 | Downstream = "raw" |
| 424 | } |
| 425 | } |
| 426 | |
| 427 | func PrepareAndDecideWhichSProtoToUpper(conn net.Conn, secret string, uuid string) Message { |
| 428 | switch Upstream { |