MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / SameNetwork

Method SameNetwork

internal/postgres/hba.go:173–176  ·  view source on GitHub ↗

SameNetwork makes hba match connection attempts from IP addresses in any subnet to which the server is directly connected.

()

Source from the content-addressed store, hash-verified

171// SameNetwork makes hba match connection attempts from IP addresses in any
172// subnet to which the server is directly connected.
173func (hba *HostBasedAuthentication) SameNetwork() *HostBasedAuthentication {
174 hba.address = "samenet"
175 return hba
176}
177
178// TLS makes hba match connection attempts made using TCP/IP with TLS.
179func (hba *HostBasedAuthentication) TLS() *HostBasedAuthentication {

Callers 1

Calls

no outgoing calls

Tested by 1