Skip to content

Commit b74c83e

Browse files
committed
BindsToAllNetworkInterfaces should check TLS also
1 parent 177fa7d commit b74c83e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/bind.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func (r *BindsToAllNetworkInterfaces) Match(n ast.Node, c *gas.Context) (gi *gas
4141

4242
func NewBindsToAllNetworkInterfaces(conf map[string]interface{}) (gas.Rule, []ast.Node) {
4343
return &BindsToAllNetworkInterfaces{
44-
call: regexp.MustCompile(`^net\.Listen$`),
44+
call: regexp.MustCompile(`^(net|tls)\.Listen$`),
4545
pattern: regexp.MustCompile(`^(0.0.0.0|:).*$`),
4646
MetaData: gas.MetaData{
4747
Severity: gas.Medium,

0 commit comments

Comments
 (0)