Disable telnet in favor of passwordless SSH
[openwrt.git] / package / network / services / dropbear / patches / 610-skip-default-keys-in-custom-runs.patch
1 --- a/svr-runopts.c
2 +++ b/svr-runopts.c
3 @@ -475,6 +475,7 @@ void load_all_hostkeys() {
4                 m_free(hostkey_file);
5         }
6  
7 +       if (svr_opts.num_hostkey_files <= 0) {
8  #ifdef DROPBEAR_RSA
9         loadhostkey(RSA_PRIV_FILENAME, 0);
10  #endif
11 @@ -486,6 +487,7 @@ void load_all_hostkeys() {
12  #ifdef DROPBEAR_ECDSA
13         loadhostkey(ECDSA_PRIV_FILENAME, 0);
14  #endif
15 +       }
16  
17  #ifdef DROPBEAR_DELAY_HOSTKEY
18         if (svr_opts.delay_hostkey) {