From 7447b9e0db44d44af46f894f0436cd9e0b788495 Mon Sep 17 00:00:00 2001 From: evilsocket Date: Tue, 30 Oct 2018 05:01:29 +0100 Subject: [PATCH] fix: fixes #379 --- session/module_param.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/session/module_param.go b/session/module_param.go index 79896fe4..fb52745a 100644 --- a/session/module_param.go +++ b/session/module_param.go @@ -84,7 +84,7 @@ func (p ModuleParam) Validate(value string) (error, interface{}) { case INT: i, err := strconv.Atoi(value) return err, i - } else if p.Type == FLOAT { + case FLOAT: i, err := strconv.ParseFloat(value, 64) return err, i }