Confusing warning in reporter.log when reading ports into config framework

Description

If a config framework runtime option has type "port", and if a user tries to modify
the value at runtime by reading a port value from a file, then it works correctly,
but there is an erroneous and confusing warning message in reporter.log.

For example, given:
module Mytest;
export {
option myport: port = 123/tcp;
}

Then, when a user has a config file that looks like this:
Mytest::myport 57/udp

The new value is correctly applied to the "myport" runtime option,
but there is a warning in reporter.log that looks like this:

#fields ts level message location
#types time enum string string
0.000000 Reporter::WARNING /Users/test/bro/config.dat/Input::READER_CONFIG: Number '57/udp' contained non-numeric trailing characters. Ignored trailing characters '/udp' (empty)

Environment

None

Status

Assignee

Jon Siwek

Reporter

Daniel Thayer

Labels

None

External issue ID

None

Components

Fix versions

Priority

Low
Configure