24 lines
363 B
Plaintext
24 lines
363 B
Plaintext
![]() |
include::../description.adoc[]
|
||
|
|
||
|
include::../ask-yourself.adoc[]
|
||
|
|
||
|
include::../recommended.adoc[]
|
||
|
|
||
|
== Sensitive Code Example
|
||
|
|
||
|
----
|
||
|
val ip = "192.168.12.42"
|
||
|
val socket = ServerSocket(ip, 6667)
|
||
|
----
|
||
|
|
||
|
== Compliant Solution
|
||
|
|
||
|
----
|
||
|
val ip = System.getenv("myapplication.ip")
|
||
|
val socket = ServerSocket(ip, 6667)
|
||
|
----
|
||
|
|
||
|
include::../exceptions.adoc[]
|
||
|
|
||
|
include::../see.adoc[]
|