Skip to content

Commit 4fa2af7

Browse files
committed
Avoid port 6697. Closes rstudio#1784
1 parent 4f3d26c commit 4fa2af7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ shiny 1.0.5.9000
1111

1212
* The version of Shiny is now accessible from Javascript, with `Shiny.version`. ([#1826](https://github.com/rstudio/shiny/pull/1826))
1313

14+
* Addressed [#1784](https://github.com/rstudio/shiny/issues/1784): `runApp()` will avoid port 6697, which is considered unsafe by Chrome.
15+
1416
### Bug fixes
1517

1618
### Library updates

R/server.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,8 @@ runApp <- function(appDir=getwd(),
731731
port <- p_randomInt(3000, 8000)
732732
# Reject ports in this range that are considered unsafe by Chrome
733733
# http://superuser.com/questions/188058/which-ports-are-considered-unsafe-on-chrome
734-
if (!port %in% c(3659, 4045, 6000, 6665:6669)) {
734+
# https://github.com/rstudio/shiny/issues/1784
735+
if (!port %in% c(3659, 4045, 6000, 6665:6669, 6697)) {
735736
break
736737
}
737738
}

0 commit comments

Comments
 (0)