32 |
32 |
33 |
33 |
34 def checkBindAllInterfaces(reportError, context, config): |
34 def checkBindAllInterfaces(reportError, context, config): |
35 """ |
35 """ |
36 Function to check for binding to all interfaces. |
36 Function to check for binding to all interfaces. |
37 |
37 |
38 @param reportError function to be used to report errors |
38 @param reportError function to be used to report errors |
39 @type func |
39 @type func |
40 @param context security context object |
40 @param context security context object |
41 @type SecurityContext |
41 @type SecurityContext |
42 @param config dictionary with configuration data |
42 @param config dictionary with configuration data |
43 @type dict |
43 @type dict |
44 """ |
44 """ |
45 if context.stringVal == '0.0.0.0': # secok |
45 if context.stringVal == "0.0.0.0": # secok |
46 reportError( |
46 reportError( |
47 context.node.lineno - 1, |
47 context.node.lineno - 1, |
48 context.node.col_offset, |
48 context.node.col_offset, |
49 "S104", |
49 "S104", |
50 "M", |
50 "M", |