Skip to content

Commit

Permalink
fix: improve NAT traversal; add TURN routing (#795)
Browse files Browse the repository at this point in the history
Signed-off-by: ivelin <ivelin@ambianic.ai>
  • Loading branch information
Ivelin Ivanov committed Dec 13, 2021
1 parent 966c756 commit f88a01d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/components/NavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
@click.stop="drawer = !drawer"
/>

<v-app-bar-title
<v-toolbar-title
class="text-center"
ref="app-bar-title"
>
Expand All @@ -29,7 +29,7 @@
class="hidden-sm-and-down"
> - </span>
<span class="hidden-sm-and-down">{{ $route.meta.title }}</span>
</v-app-bar-title>
</v-toolbar-title>

<v-spacer />

Expand Down
8 changes: 7 additions & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,11 @@ export const ambianicConf = {
AMBIANIC_EDGE_API_ROOT: 'api',
AMBIANIC_PNP_HOST: 'ambianic-pnp.herokuapp.com', // 'localhost'
AMBIANIC_PNP_PORT: 443, // 9779
AMBIANIC_PNP_SECURE: true // false
AMBIANIC_PNP_SECURE: true, // false
ICE_CONFIG: {
'iceServers': [
{ url: 'stun:stun.l.google.com:19302' },
{ url: 'turn:numb.viagenie.ca', credential: 'DAEidbG!xHavEX7', username: 'turn@ambianic.ai' }
]
} /* Default STUN and TURN servers */
}
1 change: 1 addition & 0 deletions src/store/pnp.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ const actions = {
host: ambianicConf.AMBIANIC_PNP_HOST,
port: ambianicConf.AMBIANIC_PNP_PORT,
secure: ambianicConf.AMBIANIC_PNP_SECURE,
config: ambianicConf.ICE_CONFIG,
debug: 3
}
)
Expand Down
1 change: 1 addition & 0 deletions tests/unit/store/pnp-actions.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ describe('PnP state machine actions - p2p communication layer', () => {
host: ambianicConf.AMBIANIC_PNP_HOST,
port: ambianicConf.AMBIANIC_PNP_PORT,
secure: ambianicConf.AMBIANIC_PNP_SECURE,
config: ambianicConf.ICE_CONFIG,
debug: 3
})
})
Expand Down

0 comments on commit f88a01d

Please sign in to comment.