| 113 | } |
| 114 | |
| 115 | type SimpleServerOptions struct { |
| 116 | // FailUpgradeDERP will make the DERP server fail to handle the initial DERP |
| 117 | // upgrade in a way that causes the client to fallback to |
| 118 | // DERP-over-WebSocket fallback automatically. |
| 119 | // Incompatible with DERPWebsocketOnly. |
| 120 | FailUpgradeDERP bool |
| 121 | // DERPWebsocketOnly will make the DERP server only accept WebSocket |
| 122 | // connections. If a DERP request is received that is not using WebSocket |
| 123 | // fallback, the test will fail. |
| 124 | // Incompatible with FailUpgradeDERP. |
| 125 | DERPWebsocketOnly bool |
| 126 | } |
| 127 | |
| 128 | var _ ServerStarter = SimpleServerOptions{} |
| 129 |
nothing calls this directly
no outgoing calls
no test coverage detected