mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
fix(elb): default omitted classic listener instance protocols (#6785)
This commit is contained in:
1 parent
d3c4732b31
commit
80dbdbc0f8
4 files changed
+101
-1
No files matched your search
@@ -28,7 +28,16 @@ public class ClassicListener {
|
||||
public Integer getLoadBalancerPort() { return loadBalancerPort; }
|
||||
public void setLoadBalancerPort(Integer loadBalancerPort) { this.loadBalancerPort = loadBalancerPort; }
|
||||
|
||||
public String getInstanceProtocol() { return instanceProtocol; }
|
||||
public String getInstanceProtocol() {
|
||||
if (instanceProtocol != null && !instanceProtocol.isEmpty()) {
|
||||
return instanceProtocol;
|
||||
}
|
||||
return switch (protocol) {
|
||||
case "HTTPS" -> "HTTP";
|
||||
case "SSL" -> "TCP";
|
||||
case null, default -> protocol;
|
||||
};
|
||||
}
|
||||
public void setInstanceProtocol(String instanceProtocol) { this.instanceProtocol = instanceProtocol; }
|
||||
|
||||
public Integer getInstancePort() { return instancePort; }
|
||||
|
||||
Reference in new issue
Block a user