|  | @@ -26,6 +26,7 @@ func (this *ShadowsocksServerConfig) Build() (*loader.TypedSettings, error) {
 | 
											
												
													
														|  |  	}
 |  |  	}
 | 
											
												
													
														|  |  	account := &shadowsocks.Account{
 |  |  	account := &shadowsocks.Account{
 | 
											
												
													
														|  |  		Password: this.Password,
 |  |  		Password: this.Password,
 | 
											
												
													
														|  | 
 |  | +		Ota:      shadowsocks.Account_Auto,
 | 
											
												
													
														|  |  	}
 |  |  	}
 | 
											
												
													
														|  |  	cipher := strings.ToLower(this.Cipher)
 |  |  	cipher := strings.ToLower(this.Cipher)
 | 
											
												
													
														|  |  	switch cipher {
 |  |  	switch cipher {
 | 
											
										
											
												
													
														|  | @@ -56,6 +57,7 @@ type ShadowsocksServerTarget struct {
 | 
											
												
													
														|  |  	Cipher   string   `json:"method"`
 |  |  	Cipher   string   `json:"method"`
 | 
											
												
													
														|  |  	Password string   `json:"password"`
 |  |  	Password string   `json:"password"`
 | 
											
												
													
														|  |  	Email    string   `json:"email"`
 |  |  	Email    string   `json:"email"`
 | 
											
												
													
														|  | 
 |  | +	Ota      bool     `json:"ota"`
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  type ShadowsocksClientConfig struct {
 |  |  type ShadowsocksClientConfig struct {
 | 
											
										
											
												
													
														|  | @@ -82,6 +84,10 @@ func (this *ShadowsocksClientConfig) Build() (*loader.TypedSettings, error) {
 | 
											
												
													
														|  |  		}
 |  |  		}
 | 
											
												
													
														|  |  		account := &shadowsocks.Account{
 |  |  		account := &shadowsocks.Account{
 | 
											
												
													
														|  |  			Password: server.Password,
 |  |  			Password: server.Password,
 | 
											
												
													
														|  | 
 |  | +			Ota:      shadowsocks.Account_Enabled,
 | 
											
												
													
														|  | 
 |  | +		}
 | 
											
												
													
														|  | 
 |  | +		if !server.Ota {
 | 
											
												
													
														|  | 
 |  | +			account.Ota = shadowsocks.Account_Disabled
 | 
											
												
													
														|  |  		}
 |  |  		}
 | 
											
												
													
														|  |  		cipher := strings.ToLower(server.Cipher)
 |  |  		cipher := strings.ToLower(server.Cipher)
 | 
											
												
													
														|  |  		switch cipher {
 |  |  		switch cipher {
 |