From 7caccfa911960e35721059c058faf315e15cd804 Mon Sep 17 00:00:00 2001 From: kung-foo Date: Tue, 24 Jan 2017 09:03:22 +0100 Subject: [PATCH] fix proxy. this is why testing is important --- Makefile | 2 +- freki.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9583858..70d7abd 100644 --- a/Makefile +++ b/Makefile @@ -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) diff --git a/freki.go b/freki.go index 1bf50c0..6afe70e 100644 --- a/freki.go +++ b/freki.go @@ -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