-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathstatic.go
More file actions
33 lines (27 loc) · 1.02 KB
/
Copy pathstatic.go
File metadata and controls
33 lines (27 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build linux || darwin || windows
// +build linux darwin windows
// Package static implements a RuntimeFactory suitable for a variety of network
// configurations, including 1-1 NATs, Amazon Web Services and Google Compute
// Engine but hosted on a static IP address with no support for adapting to
// dhcp changes.
package static
import (
"v.io/x/ref/runtime/factories/library"
"v.io/v23/flow"
"v.io/x/ref/runtime/protocols/lib/websocket"
_ "v.io/x/ref/runtime/protocols/tcp" // Initialize tcp, ws and wsh.
_ "v.io/x/ref/runtime/protocols/ws"
_ "v.io/x/ref/runtime/protocols/wsh"
)
func init() {
library.Roam = false
library.CloudVM = true
library.ConfigureLoggingFromFlags = true
library.ConfigurePermissionsFromFlags = true
library.ReservedNameDispatcher = true
flow.RegisterUnknownProtocol("wsh", websocket.WSH{})
library.EnableCommandlineFlags()
}