documentation string for DefaultExternalAddress

This commit is contained in:
Morgan Bauer 2016-12-06 14:53:59 -08:00
parent 5b2823adb9
commit 23d9d8887b
No known key found for this signature in database
GPG Key ID: 25A6B3DB515E54CF

View File

@ -85,6 +85,10 @@ func NewServerRunOptions() *ServerRunOptions {
}
}
// DefaultAdvertiseAddress sets the field AdvertiseAddress if
// unset. The field will be set based on the SecureServingOptions. If
// the SecureServingOptions is not present, DefaultExternalAddress
// will fall back to the insecure ServingOptions.
func (s *ServerRunOptions) DefaultAdvertiseAddress(secure *SecureServingOptions, insecure *ServingOptions) error {
if s.AdvertiseAddress == nil || s.AdvertiseAddress.IsUnspecified() {
switch {