MCPcopy Create free account
hub / github.com/f0ng/autoDecoder / headersToport

Method headersToport

src/Utils/Utils.java:175–188  ·  view source on GitHub ↗
(String hostport,Boolean usehttps)

Source from the content-addressed store, hash-verified

173 }
174
175 public static int headersToport(String hostport,Boolean usehttps){
176 int port ;
177 String[] hostports ;
178 if (hostport.contains(":")) {
179 hostports = hostport.split(":");
180 port = Integer.parseInt(hostports[1]);
181 }else{
182 if (usehttps)
183 port = 443;
184 else
185 port =80;
186 }
187 return port;
188 }
189
190}

Callers 2

c_sendToRepeaterMethod · 0.95
c_sendToIntruderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected