Skip to content

Commit 79f7a7e

Browse files
ivanmatmatioktalz
authored andcommitted
BUG/MINOR: support protocol h1 with backend SSL
1 parent 9e334ce commit 79f7a7e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

controller/annotations/serverProto.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,16 @@ func (a *ServerProto) Parse(input store.StringW, forceParse bool) error {
2929
if input.Status == store.EMPTY && !forceParse {
3030
return ErrEmptyStatus
3131
}
32-
if input.Value != "h2" {
32+
33+
switch input.Value {
34+
case "h1":
35+
a.server.Alpn = ""
36+
case "h2":
37+
a.proto = "h2"
38+
default:
3339
return fmt.Errorf("unknown proto %s", input.Value)
3440
}
35-
a.proto = "h2"
41+
3642
return nil
3743
}
3844

0 commit comments

Comments
 (0)