Skip to content

Commit

Permalink
fix proxy. this is why testing is important
Browse files Browse the repository at this point in the history
  • Loading branch information
kung-foo committed Jan 24, 2017
1 parent 712f691 commit 7caccfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION := 1.0.2
VERSION := 1.0.3
NAME := freki
GH_PATH := github.com/kung-foo/$(NAME)
BUILDSTRING := $(shell git log --pretty=format:'%h' -n 1)
Expand Down
4 changes: 2 additions & 2 deletions freki.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,8 @@ func (p *Processor) mangle(

case ProxyTCP:
// TODO: optimize?
if s, ok = p.servers["log.tcp"]; !ok {
return fmt.Errorf("No TCPPLogger installed")
if s, ok = p.servers["proxy.tcp"]; !ok {
return fmt.Errorf("No TCPProxy installed")
}
tcp.DstPort = layers.TCPPort(s.Port())
goto modified
Expand Down

0 comments on commit 7caccfa

Please sign in to comment.