mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
Fixed typos
This commit is contained in:
+1
-1
@@ -89,7 +89,7 @@ func Run() {
|
||||
log.Fatal("Too large udp packet", bufSize)
|
||||
}
|
||||
|
||||
request, err := decodeRequest(buf[0:rlen])
|
||||
request, err := DecodeRequest(buf[0:rlen])
|
||||
|
||||
if err != nil {
|
||||
log.Println("Decode error:", err)
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ type ReplaySettings struct {
|
||||
func (r *ReplaySettings) ForwardedHosts() (hosts []*ForwardHost) {
|
||||
hosts = make([]*ForwardHost, 0, 10)
|
||||
|
||||
for _, address := range strings.Split(r.address, ",") {
|
||||
for _, address := range strings.Split(r.forwardAddress, ",") {
|
||||
host_info := strings.Split(address, "|")
|
||||
|
||||
if strings.Index(host_info[0], "http") == -1 {
|
||||
|
||||
Reference in New Issue
Block a user