MCPcopy Index your code
hub / github.com/f0ng/autoDecoder / headersTohost

Method headersTohost

src/Utils/Utils.java:163–173  ·  view source on GitHub ↗
(String hostport)

Source from the content-addressed store, hash-verified

161 }
162
163 public static String headersTohost(String hostport){
164 String host = "";
165 String[] hostports ;
166 if (hostport.contains(":")) {
167 hostports = hostport.split(":");
168 host = hostports[0];
169 }else{
170 host = hostport;
171 }
172 return host;
173 }
174
175 public static int headersToport(String hostport,Boolean usehttps){
176 int port ;

Callers 2

c_sendToRepeaterMethod · 0.95
c_sendToIntruderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected