I have added a function by the above name in this PR and it is used to check if proto detection is enabled in the conf.