HAProxyMessage.sourceAddress() can be null (#11475)

Motivation:

If `send-proxy-v2` is used `sourceAddress()` can be `null`.

Modification:

Update docs to reflect this.

Result:

Docs are more correct.
This commit is contained in:
Adrian Antkowiak 2021-07-12 11:55:39 +02:00 committed by GitHub
parent 6ce36f1909
commit 8cbdefae23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -501,7 +501,8 @@ public final class HAProxyMessage extends AbstractReferenceCounted {
}
/**
* Returns the human-readable source address of this {@link HAProxyMessage}.
* Returns the human-readable source address of this {@link HAProxyMessage} or {@code null}
* if HAProxy performs health check with {@code send-proxy-v2}.
*/
public String sourceAddress() {
return sourceAddress;