Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Enhort
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Michael Menzel
Enhort
Commits
fe96eee8
Commit
fe96eee8
authored
Aug 07, 2019
by
Michael Menzel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor
parent
82054bb9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
frontend/src/main/java/de/thm/spring/backend/Settings.java
frontend/src/main/java/de/thm/spring/backend/Settings.java
+2
-12
No files found.
frontend/src/main/java/de/thm/spring/backend/Settings.java
View file @
fe96eee8
...
...
@@ -4,7 +4,6 @@ import org.slf4j.Logger;
import
org.slf4j.LoggerFactory
;
import
java.io.File
;
import
java.net.InetAddress
;
import
java.nio.file.Path
;
public
class
Settings
{
...
...
@@ -20,15 +19,6 @@ public class Settings {
}
public
static
void
setBackendip
(
String
ip
)
{
try
{
InetAddress
address
=
InetAddress
.
getByName
(
ip
);
if
(!
address
.
isReachable
(
1000
))
throw
new
Exception
(
"Backend Server "
+
ip
+
" not reachable"
);
}
catch
(
Exception
e
)
{
logger
.
error
(
"Exception {}"
,
e
.
getMessage
(),
e
);
}
Settings
.
backendip
=
ip
;
}
...
...
@@ -56,8 +46,8 @@ public class Settings {
return
port
;
}
public
static
void
setPort
(
Integer
i
p
)
{
port
=
i
p
;
public
static
void
setPort
(
Integer
p
)
{
port
=
p
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment