MCPcopy
hub / github.com/ph4ntonn/Stowaway / DecideType

Function DecideType

protocol/protocol.go:413–425  ·  view source on GitHub ↗
(upstream, downstream string)

Source from the content-addressed store, hash-verified

411}
412
413func 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
427func PrepareAndDecideWhichSProtoToUpper(conn net.Conn, secret string, uuid string) Message {
428 switch Upstream {

Callers 3

mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected