OpenVPN에 대한 클라이언트 구성 파일 ( “client-config-dir”로 지정된 경로에), 즉 “#”또는 “//”등으로 시작하는 주석을 넣을 수 있습니까? 그렇다면 적절한 주석 문자는 무엇입니까?
답변
Jim이 말했듯이 OpenVPN 사이트의 예제는 주석에 #을 사용하고; 설정을 주석 처리합니다. 기능상의 차이는 없지만이 규칙을 사용하면 주석 처리 된 설정을보다 쉽게 식별 할 수 있습니다.
에서 https://openvpn.net/index.php/open-source/documentation/howto.html#examples
#################################################
# Sample OpenVPN 2.0 config file for #
<snip>
# Comments are preceded with '#' or ';' #
#################################################
# Which local IP address should OpenVPN
# listen on? (optional)
;local a.b.c.d
# Which TCP/UDP port should OpenVPN listen on?
# If you want to run multiple OpenVPN instances
# on the same machine, use a different port
# number for each one. You will need to
# open up this port on your firewall.
port 1194
# TCP or UDP server?
;proto tcp
proto udp
답변
‘#’접두사는 지정된 주석 태그입니다. openvpn 웹 사이트의 예제는 ‘#’주석을 광범위하게 사용합니다.
또한 세미콜론- ‘;’ -한 줄 또는 항목을 주석 처리하는 데 사용됩니다.